Browse Source

feat:适配前端风格存储

songzhibin97 3 years ago
parent
commit
17c7dc921e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      server/model/sys_user.go

+ 3 - 1
server/model/sys_user.go

@@ -2,7 +2,8 @@ package model
 
 import (
 	"gin-vue-admin/global"
-	"github.com/satori/go.uuid"
+
+	"github.com/gofrs/uuid"
 )
 
 type SysUser struct {
@@ -14,4 +15,5 @@ type SysUser struct {
 	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"` // 用户角色ID
+	Theme       string       `json:"theme" gorm:"default:{\"theme\":\"#1890ff\",\"sideMode\":\"dark\"};comment:用户配置信息"`
 }