自动化代码结构体无需手动添加time包

This commit is contained in:
piexlmax
2022-06-30 11:57:24 +08:00
parent 0610419e38
commit 70ff8ead90
3 changed files with 14 additions and 1 deletions

View File

@@ -3,10 +3,10 @@ package {{.Package}}
import (
"github.com/flipped-aurora/gin-vue-admin/server/global"
{{ if .HasTimer }}"time"{{ end }}
)
// {{.StructName}} 结构体
// 如果含有time.Time 请自行import time包
type {{.StructName}} struct {
global.GVA_MODEL {{- range .Fields}}
{{- if eq .FieldType "enum" }}