|
@@ -31,6 +31,11 @@ class GroupController extends Controller {
|
|
|
const res = await this.service.findbystuid(this.ctx.request.body);
|
|
|
this.ctx.ok({ msg: 'ok', data: res });
|
|
|
}
|
|
|
+
|
|
|
+ async index() {
|
|
|
+ const data = await this.service.query(this.ctx.query);
|
|
|
+ this.ctx.ok({ ...data });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
module.exports = CrudController(GroupController, meta);
|