We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a5e055 commit 3e79061Copy full SHA for 3e79061
cmd/generate/stubs/relational/service.stub
@@ -19,7 +19,7 @@ func All{{TitleName}}(requestFilter map[string]interface{}) ([]models.{{TitleNam
19
20
paginationInstance := artifact.NewPaginator({{PluralLowerName}}, requestFilter)
21
22
- models.{{TitleName}}Model.Where(filter).Scopes(paginationInstance.PaginateScope()).Find(&{{PluralLowerName}})
+ models.{{TitleName}}Model.Where(filter).Scopes(paginationInstance.PaginateScope(requestFilter["page"].(int), requestFilter["limit"].(int))).Find(&{{PluralLowerName}})
23
24
return {{PluralLowerName}}, paginationInstance.Meta, nil
25
@@ -84,4 +84,4 @@ func DeleteA{{TitleName}}({{SingularLowerName}}Id string) bool {
84
}
85
86
return true
87
-}
+}
0 commit comments