sys_user.go 758 字节
Newer Older
Mr.奇淼('s avatar
Mr.奇淼( 已提交
1
package model
Mr.奇淼('s avatar
Mr.奇淼( 已提交
2 3

import (
4
	"gin-vue-admin/global"
5
	"github.com/satori/go.uuid"
Mr.奇淼('s avatar
Mr.奇淼( 已提交
6 7
)

8
type SysUser struct {
9
	global.GVA_MODEL
Mr.奇淼('s avatar
Mr.奇淼( 已提交
10 11 12 13 14 15 16
	UUID        uuid.UUID    `json:"uuid" gorm:"comment:用户UUID"`
	Username    string       `json:"userName" gorm:"comment:用户登录名"`
	Password    string       `json:"-"  gorm:"comment:用户登录密码"`
	NickName    string       `json:"nickName" gorm:"default:系统用户;comment:用户昵称" `
	HeaderImg   string       `json:"headerImg" gorm:"default:http://qmplusimg.henrongyi.top/head.png;comment:用户头像"`
	Authority   SysAuthority `json:"authority" gorm:"foreignKey:AuthorityId;references:AuthorityId;comment:用户角色"`
	AuthorityId string       `json:"authorityId" gorm:"default:888;comment:用户角色ID"`
L
Leonard Wang 已提交
17
}