mirror of
https://gitcode.com/flipped-aurora/gin-vue-admin.git
synced 2025-12-30 11:52:26 +00:00
fix(service): 表格排序ID变为小写
This commit is contained in:
@@ -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}}
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user