fix🐛:排序参数必须用string接收
优化了代码生成的格式,最后的空行无法删除,删除之后}前面会增加空格
This commit is contained in:
1 parent
7d1b84e837
commit
4df859a0ea
1 file changed
+2
-2
@@ -34,9 +34,9 @@ type {{.ClassName}}GetPageReq struct {
|
||||
}
|
||||
|
||||
type {{.ClassName}}Order struct {
|
||||
{{- $tablename := .TBName -}}
|
||||
{{ $tablename := .TBName }}
|
||||
{{- range .Columns -}}
|
||||
{{.GoField}} {{.GoType}} `form:"{{.JsonField}}Order" search:"type:order;column:{{.ColumnName}};table:{{$tablename}}"`
|
||||
{{.GoField}} string `form:"{{.JsonField}}Order" search:"type:order;column:{{.ColumnName}};table:{{$tablename}}"`
|
||||
{{ end }}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user