|
@@ -32,7 +32,10 @@ class GroupController extends Controller {
|
|
|
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);
|