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/modelstatic.ts |   36 ++++++++++++++++++------------------
 1 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/src/app/modules/business/controller/admin/modelstatic.ts b/src/app/modules/business/controller/admin/modelstatic.ts
index c277daa..1b161a9 100644
--- a/src/app/modules/business/controller/admin/modelstatic.ts
+++ b/src/app/modules/business/controller/admin/modelstatic.ts
@@ -1,33 +1,33 @@
 import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
 import { CoolController, BaseController } from '@cool-midway/core';
 import { Modelstatic } from '../../entity/modelstatic';
-import { ModelstaticService } from '../../service/modelstatic';
+// import { ModelstaticService } from '../../service/modelstatic';
 import { DataController } from '../../../base/controller/dataController';
 /**
-聽 聽 聽 聽 * 闈欐�佹ā鍨嬫暟鎹�
-聽 聽 聽 聽 */
+        * 闈欐�佹ā鍨嬫暟鎹�
+        */
 @Provide()
-@CoolController({ 
- 聽api: ['add', 'delete', 'update', 'list','page','info'],
- 聽entity: Modelstatic,
- 聽service: ModelstaticService,
+@CoolController({
+  api: ['add', 'delete', 'update', 'list', 'page', 'info'],
+  entity: Modelstatic,
+  //  聽service: ModelstaticService,
 })
 export class ModelstaticController extends DataController {
- 聽@Inject()
- 聽modelstaticService: ModelstaticService;
- 聽
+  //  聽@Inject()
+  //  聽modelstaticService: ModelstaticService;
+
   /**
   * 鑾峰緱鏁版嵁
   */
- 聽 @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