fix(service): 表格排序ID变为小写

This commit is contained in:
piexlMax(奇淼
2025-07-03 11:50:14 +08:00
parent cee3b54b4c
commit bf095c38e9
2 changed files with 2 additions and 2 deletions

View File

@@ -161,7 +161,7 @@ func ({{.Abbreviation}}Service *{{.StructName}}Service)Get{{.StructName}}InfoLis
var OrderStr string
orderMap := make(map[string]bool)
{{- if .GvaModel }}
orderMap["ID"] = true
orderMap["id"] = true
orderMap["CreatedAt"] = true
{{- end }}
{{- range .Fields}}

View File

@@ -168,7 +168,7 @@ func (s *{{.Abbreviation}}) Get{{.StructName}}InfoList(ctx context.Context, info
var OrderStr string
orderMap := make(map[string]bool)
{{- if .GvaModel }}
orderMap["ID"] = true
orderMap["id"] = true
orderMap["CreatedAt"] = true
{{- end }}
{{- range .Fields}}