Skip to content

Commit 3420a9d

Browse files
author
piexl
committed
修改模板列表返回结构
1 parent 6bcef5c commit 3420a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/resource/autocode_template/server/service.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func ({{.Abbreviation}}Service *{{.StructName}}Service)Get{{.StructName}}(id uin
4747

4848
// Get{{.StructName}}InfoList 分页获取{{.StructName}}记录
4949
// Author [piexlmax](https://github.com/piexlmax)
50-
func ({{.Abbreviation}}Service *{{.StructName}}Service)Get{{.StructName}}InfoList(info {{.Package}}Req.{{.StructName}}Search) (list interface{}, total int64, err error) {
50+
func ({{.Abbreviation}}Service *{{.StructName}}Service)Get{{.StructName}}InfoList(info {{.Package}}Req.{{.StructName}}Search) (list []{{.Package}}.{{.StructName}}, total int64, err error) {
5151
limit := info.PageSize
5252
offset := info.PageSize * (info.Page - 1)
5353
// 创建db

0 commit comments

Comments
 (0)