修复初始化已知bug
This commit is contained in:
1 parent
ca4ed89536
commit
3d5a2ea9f7
9 files changed
+88
-56
No files matched your search
@@ -50,21 +50,12 @@ type {{.ClassName}}Control struct {
|
||||
{{- else if eq .GoField "CreatedAt" -}}
|
||||
{{- else if eq .GoField "UpdatedAt" -}}
|
||||
{{- else if eq .GoField "DeletedAt" -}}
|
||||
{{- else if eq .GoField "CreateBy" }}
|
||||
|
||||
{{.GoField}} uint `json:"{{.JsonField}}"` // {{.ColumnComment}}
|
||||
{{- else if eq .GoField "UpdateBy" }}
|
||||
{{- else if eq .GoField "CreateBy" -}}
|
||||
|
||||
{{.GoField}} uint `json:"{{.JsonField}}" comment:"{{.ColumnComment}}"`
|
||||
{{- else if eq .GoField "UpdateBy" -}}
|
||||
|
||||
{{.GoField}} uint `json:"{{.JsonField}}" comment:"{{.ColumnComment}}"`
|
||||
{{- else }}
|
||||
|
||||
{{.GoField}} {{.GoType}} `json:"{{.JsonField}}"` // {{.ColumnComment}}
|
||||
{{.GoField}} {{.GoType}} `json:"{{.JsonField}}" comment:"{{.ColumnComment}}"`
|
||||
{{end -}}
|
||||
{{.GoField}} {{.GoType}} `json:"{{.JsonField}}" comment:"{{.ColumnComment}}"` {{end -}}
|
||||
{{- end }}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user