@@ -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() {