liuyu 5 anni fa
parent
commit
0b4083391f
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      app/controller/student.js

+ 6 - 0
app/controller/student.js

@@ -12,6 +12,12 @@ class StudentController extends Controller {
     super(ctx);
     this.service = this.ctx.service.student;
   }
+
+  async index() {
+    const data = await this.service.query(this.ctx.query);
+    this.ctx.ok({ ...data });
+  }
+
   // GET
   // 查询
   async seek() {