liuyu 5 년 전
부모
커밋
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);