fix(service): 表格排序ID变为小写
This commit is contained in:
parent
cee3b54b4c
commit
bf095c38e9
|
|
@ -161,7 +161,7 @@ func ({{.Abbreviation}}Service *{{.StructName}}Service)Get{{.StructName}}InfoLis
|
||||||
var OrderStr string
|
var OrderStr string
|
||||||
orderMap := make(map[string]bool)
|
orderMap := make(map[string]bool)
|
||||||
{{- if .GvaModel }}
|
{{- if .GvaModel }}
|
||||||
orderMap["ID"] = true
|
orderMap["id"] = true
|
||||||
orderMap["CreatedAt"] = true
|
orderMap["CreatedAt"] = true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range .Fields}}
|
{{- range .Fields}}
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ func (s *{{.Abbreviation}}) Get{{.StructName}}InfoList(ctx context.Context, info
|
||||||
var OrderStr string
|
var OrderStr string
|
||||||
orderMap := make(map[string]bool)
|
orderMap := make(map[string]bool)
|
||||||
{{- if .GvaModel }}
|
{{- if .GvaModel }}
|
||||||
orderMap["ID"] = true
|
orderMap["id"] = true
|
||||||
orderMap["CreatedAt"] = true
|
orderMap["CreatedAt"] = true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range .Fields}}
|
{{- range .Fields}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue