修改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

@@ -1,12 +1,12 @@
package model
import (
"gin-vue-admin/global"
"github.com/satori/go.uuid"
"gorm.io/gorm"
)
type SysUser struct {
gorm.Model
global.GVA_MODEL
UUID uuid.UUID `json:"uuid" gorm:"comment:用户UUID"`
Username string `json:"userName" gorm:"comment:用户登录名"`
Password string `json:"-" gorm:"comment:用户登录密码"`