From 58389be5d3c1bbf4e47976f7ea09977be8bb84c5 Mon Sep 17 00:00:00 2001
From: master <master@163.com>
Date: 星期四, 07 四月 2022 15:27:38 +0800
Subject: [PATCH] 重写add接口

---
 src/app/modules/business/controller/admin/modelcombination.ts |   36 ++++++++++++++++++------------------
 1 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/src/app/modules/business/controller/admin/modelcombination.ts b/src/app/modules/business/controller/admin/modelcombination.ts
index fb02a57..fc99ae2 100644
--- a/src/app/modules/business/controller/admin/modelcombination.ts
+++ b/src/app/modules/business/controller/admin/modelcombination.ts
@@ -1,33 +1,33 @@
 import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
 import { CoolController, BaseController } from '@cool-midway/core';
 import { Modelcombination } from '../../entity/modelcombination';
-import { ModelcombinationService } from '../../service/modelcombination';
+// import { ModelcombinationService } from '../../service/modelcombination';
 import { DataController } from '../../../base/controller/dataController';
 /**
-聽 聽 聽 聽 * 缁勫悎妯″瀷
-聽 聽 聽 聽 */
+        * 缁勫悎妯″瀷
+        */
 @Provide()
-@CoolController({ 
- 聽api: ['add', 'delete', 'update', 'list','page','info'],
- 聽entity: Modelcombination,
- 聽service: ModelcombinationService,
+@CoolController({
+  api: ['add', 'delete', 'update', 'list', 'page', 'info'],
+  entity: Modelcombination,
+  //  聽service: ModelcombinationService,
 })
 export class ModelcombinationController extends DataController {
- 聽@Inject()
- 聽modelcombinationService: ModelcombinationService;
- 聽
+  //  聽@Inject()
+  //  聽modelcombinationService: ModelcombinationService;
+
   /**
   * 鑾峰緱鏁版嵁
   */
- 聽 @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));
- 聽 }
+  @Get('/postdata', { summary: '鏁版嵁鎺ュ彛' })
+  async postData(@Query(ALL) params: any) {
+    return this.ok(await this.dataService.getData(params));
+  }
 }
\ No newline at end of file

--
Gitblit v1.9.1