master
2022-03-25 c0f7b99859c8b958a3d1210a046b57dd1b89e411
src/app/modules/business/controller/admin/trubinelocation.ts
@@ -4,30 +4,30 @@
import { TrubinelocationService } from '../../service/trubinelocation';
import { DataController } from '../../../base/controller/dataController';
/**
        * 斗轮机信息
        */
        * 斗轮机信息
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list','page','info'],
  entity: Trubinelocation,
  service: TrubinelocationService,
@CoolController({
  api: ['add', 'delete', 'update', 'list', 'page', 'info'],
  entity: Trubinelocation,
  service: TrubinelocationService,
})
export class TrubinelocationController extends DataController {
  @Inject()
  trubinelocationService: TrubinelocationService;
  
  @Inject()
  trubinelocationService: TrubinelocationService;
  /**
  * 获得数据
  */
   @Get('/getdata', { summary: '数据接口' })
   async getData(@Query(ALL) params: any) {
      return this.ok(await this.dataService.getData(params));
   }
  @Get('/getdata', { summary: '数据接口' })
  async getData(@Query(ALL) params: any) {
    return this.ok(await this.dataService.getData(params));
  }
  /**
  * 获得数据
  */
   @Get('/postdata', { summary: '数据接口' })
   async postData(@Query(ALL) params: any) {
      return this.ok(await this.dataService.getData(params));
   }
  @Post('/postdata', { summary: '数据接口' })
  async postData(@Query(ALL) params: any) {
    return this.ok(await this.dataService.getData(params));
  }
}