| | |
| | | import { Provide, Inject, } from '@midwayjs/decorator'; |
| | | import { Provide, Inject, Get, Query, ALL } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { BasedeviceinfoEntity } from '../../entity/basedeviceinfo'; |
| | | |
| | |
| | | entity: BasedeviceinfoEntity |
| | | }) |
| | | export class AdminBasedeviceinfoController extends DataController { |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | console.log(params); |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |