atzcl / z

基于 MidwayJS(EggJS) + TypeScript 的多模块应用 [ NodeJS 版 ]
129 stars 20 forks source link

模板生成的controller getPaginate 应为 paginate #15

Closed 618457 closed 4 years ago

618457 commented 4 years ago

@get("/") async index() { const result = await this.service.getPaginate(this.request); // ===>>> 应为 paginate

return this.setStatusData(result.data)
  .setStatusTotal(result.count)
  .succeed();

}

atzcl commented 4 years ago

close 8d490eb58be9ee05a9182599de97389afb7d958a