优化模版生成
This commit is contained in:
1 parent
91f2adb340
commit
6bc3e6c00b
12 files changed
+53
-50
No files matched your search
@@ -27,8 +27,6 @@ type {{.ClassName}} struct {
|
||||
{{- else }}
|
||||
{{.GoField}} {{.GoType}} `json:"{{.JsonField}}" gorm:"type:{{.ColumnType}};comment:{{- if eq .ColumnComment "" -}}{{.GoField}}{{- else -}}{{.ColumnComment}}{{end -}}"` // {{end -}}
|
||||
{{- end }}
|
||||
DataScope string `json:"dataScope" gorm:"-"`
|
||||
Params string `json:"params" gorm:"-"`
|
||||
}
|
||||
|
||||
func ({{.ClassName}}) TableName() string {
|
||||
|
||||
Reference in new issue
Block a user