diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue index 9ca7bcc..443e131 100644 --- a/src/components/HelloWorld.vue +++ b/src/components/HelloWorld.vue @@ -335,7 +335,7 @@ export default { ginplus.ResExcel(c, file, "导出信息列表") return } - ginplus.ResSuccess(c, resp) + ginplus.ResPage(c, resp) } func (l *${tableName}Api) Delete${tableName}(c *gin.Context) { @@ -383,7 +383,7 @@ export default { ${tableName} *model.${tableName}Repo } - func (a *${tableName}Service) Get${tableName}List(ctx context.Context, req *model.${tableName}ReqParams) (interface{}, error) { + func (a *${tableName}Service) Get${tableName}List(ctx context.Context, req *model.${tableName}ReqParams) (*schema.PaginationResult, error) { var l []*model.${tableName} cnt, err := a.${tableName}.Q().Filter(req).List(ctx, &l) if err != nil {