代码生成器最后一步(仅剩传给前端下载)

This commit is contained in:
QM303176530
2020-03-30 00:06:48 +08:00
parent e36dcecd0b
commit cc6e5a5a60
17 changed files with 231 additions and 812 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ import (
)
type {{.StructName}} struct {
gorm.Model {{range .Components}}
{{.ComponentName}} {{.ComponentType}} `json:"{{.ComponentJson}}"` {{ end }}
gorm.Model {{range .Fields}}
{{.FieldName}} {{.FieldType}} `json:"{{.FieldJson}}"{{if .ColumnName}} gorm:"column:{{.ColumnName}}"{{end}}`{{ end }}
}
// 创建{{.StructName}}