Browse Source

feat:适配前端风格存储

main
songzhibin97 3 years ago
parent
commit
17c7dc921e
  1. 4
      server/model/sys_user.go

4
server/model/sys_user.go

@ -2,7 +2,8 @@ package model
import ( import (
"gin-vue-admin/global" "gin-vue-admin/global"
"github.com/satori/go.uuid"
"github.com/gofrs/uuid"
) )
type SysUser struct { type SysUser struct {
@ -14,4 +15,5 @@ type SysUser struct {
HeaderImg string `json:"headerImg" gorm:"default:http://qmplusimg.henrongyi.top/head.png;comment:用户头像"` // 用户头像 HeaderImg string `json:"headerImg" gorm:"default:http://qmplusimg.henrongyi.top/head.png;comment:用户头像"` // 用户头像
Authority SysAuthority `json:"authority" gorm:"foreignKey:AuthorityId;references:AuthorityId;comment:用户角色"` Authority SysAuthority `json:"authority" gorm:"foreignKey:AuthorityId;references:AuthorityId;comment:用户角色"`
AuthorityId string `json:"authorityId" gorm:"default:888;comment:用户角色ID"` // 用户角色ID AuthorityId string `json:"authorityId" gorm:"default:888;comment:用户角色ID"` // 用户角色ID
Theme string `json:"theme" gorm:"default:{\"theme\":\"#1890ff\",\"sideMode\":\"dark\"};comment:用户配置信息"`
} }
Loading…
Cancel
Save