liuyu 4 年 前
コミット
d97e3dae48
1 ファイル変更4 行追加1 行削除
  1. 4 1
      app/controller/group.js

+ 4 - 1
app/controller/group.js

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