修改gorm.Model为自定义的全局global.GVA_MODEL 方便自定义基础参数

This commit is contained in:
pixel
2020-10-29 11:23:34 +08:00
parent 7cb172d60a
commit 10d8d7f28a
24 changed files with 191 additions and 168 deletions

View File

@@ -2,12 +2,12 @@
package model
import (
"gorm.io/gorm"
"gin-vue-admin/global"
)
// 如果含有time.Time 请自行import time包
type SysDictionary struct {
gorm.Model
global.GVA_MODEL
Name string `json:"name" form:"name" gorm:"column:name;comment:字典名(中)"`
Type string `json:"type" form:"type" gorm:"column:type;comment:字典名(英)"`
Status *bool `json:"status" form:"status" gorm:"column:status;comment:状态"`