import { Provide, Inject, Get, Query, ALL } from '@midwayjs/decorator';
|
import { CoolController, BaseController } from '@cool-midway/core';
|
import { BasedeviceinfoEntity } from '../../entity/basedeviceinfo';
|
|
import { DataController } from '../../../base/controller/dataController';
|
// import { BasedeviceinfoService } from '../../service/basedeviceinfo';
|
|
/**
|
* 描述
|
*/
|
@Provide()
|
@CoolController({
|
api: ['add', 'delete', 'update', 'info', 'list', 'page'],
|
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));
|
}
|
}
|