|
@@ -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;
|