修复mixins路径,调整目录结构

This commit is contained in:
QM303176530
2020-10-29 22:08:08 +08:00
41 changed files with 294 additions and 333 deletions
+2 -2
View File
@@ -2,12 +2,12 @@
package model
import (
"gorm.io/gorm"
"gin-vue-admin/global"
)
// 如果含有time.Time 请自行import time包
type {{.StructName}} struct {
gorm.Model {{- range .Fields}}
global.GVA_MODEL {{- range .Fields}}
{{- if eq .FieldType "bool" }}
{{.FieldName}} *{{.FieldType}} `json:"{{.FieldJson}}" form:"{{.FieldJson}}" gorm:"column:{{.ColumnName}};comment:{{.Comment}}{{- if .DataType -}};type:{{.DataType}}{{- if .DataTypeLong -}}({{.DataTypeLong}}){{- end -}};{{- if .DataTypeLong -}}size:{{.DataTypeLong}};{{- end -}}{{- end -}}"`
{{- else }}