refactor🎨 : 修正模版

This commit is contained in:
zhangwenjian committed 2020-12-21 22:04:46 +08:00
1 parent 46ea5f18aa
commit eaa135e2ad
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ type {{.ClassName}}Control struct {
{{ range .Columns -}}
{{$x := .Pk}}
{{- if ($x) }}
{{.GoField}} uint `uri:"{{.JsonField}}" comment:"{{.ColumnComment}}"` // {{.ColumnComment}}
{{.GoField}} {{.GoType}} `uri:"{{.JsonField}}" comment:"{{.ColumnComment}}"` // {{.ColumnComment}}
{{- else if eq .GoField "CreatedAt" -}}
{{- else if eq .GoField "UpdatedAt" -}}
{{- else if eq .GoField "DeletedAt" -}}