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