buff.js 591 B

1234567891011121314151617181920212223242526
  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({ ...res });
  14. }
  15. async userCodeList() {
  16. const res = await this.service.userlist(this.ctx.query);
  17. this.ctx.ok({ ...res });
  18. }
  19. }
  20. module.exports = BuffController;