优化模版生成

This commit is contained in:
linwenxiang committed 2020-09-16 22:42:13 +08:00
1 parent 91f2adb340
commit 6bc3e6c00b
12 files changed
+53 -50

No files matched your search

-2
View File
@@ -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 {