buff.js 475 B

12345678910111213141516171819202122
  1. 'use strict';
  2. const _ = require('lodash');
  3. const Controller = require('egg').Controller;
  4. const { CrudController } = require('naf-framework-mongoose/lib/controller');
  5. // 产品审核表管理
  6. class BuffController extends Controller {
  7. constructor(ctx) {
  8. super(ctx);
  9. this.service = this.ctx.service.buff;
  10. }
  11. async userlist() {
  12. const res = await this.service.userlist(this.ctx.query);
  13. this.ctx.ok({ data: res });
  14. }
  15. }
  16. module.exports = BuffController;