guhongwei 4 роки тому
батько
коміт
e200885b54
3 змінених файлів з 1 додано та 28 видалено
  1. 0 26
      app/controller/buff.js
  2. 0 2
      app/router.js
  3. 1 0
      app/service/expertsuser.js

+ 0 - 26
app/controller/buff.js

@@ -1,26 +0,0 @@
-'use strict';
-
-const _ = require('lodash');
-const Controller = require('egg').Controller;
-const { CrudController } = require('naf-framework-mongoose/lib/controller');
-
-// 产品审核表管理
-class BuffController extends Controller {
-
-  constructor(ctx) {
-    super(ctx);
-    this.service = this.ctx.service.buff;
-  }
-
-  async userlist() {
-    const res = await this.service.userlist(this.ctx.query);
-    this.ctx.ok({ ...res });
-  }
-  async userCodeList() {
-    const res = await this.service.userlist(this.ctx.query);
-    this.ctx.ok({ ...res });
-  }
-
-}
-
-module.exports = BuffController;

+ 0 - 2
app/router.js

@@ -32,8 +32,6 @@ module.exports = app => {
   // 用户退出登录
   router.post('/api/userjurisform/logout', controller.login.destroy);
 
-
-  router.get('/api/userjurisform/marketuser/hwsxg', controller.buff.userCodeList);
   // 科技超市用户表设置路由
   router.post('marketuser', '/api/userjurisform/marketuser/uppasswd', controller.marketuser.uppasswd);
   router.resources('marketuser', '/api/userjurisform/marketuser', controller.marketuser); // index、create、show、destroy

+ 1 - 0
app/service/expertsuser.js

@@ -34,6 +34,7 @@ class ExpertuserService extends CrudService {
         pid: data.pid,
         deptname: data.deptname,
         code: data.code,
+        status: data.status,
       };
       const auth_user = await this.umodel.findOne({ phone, role });
       if (auth_user) {