mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
🔖 dashboard v0.12.27 取消用户名unique,有些用户 gitee/github 用户名相同导致无法启动
This commit is contained in:
@@ -11,15 +11,15 @@ import (
|
||||
|
||||
type User struct {
|
||||
Common
|
||||
Login string `gorm:"uniqueIndex" json:"login,omitempty"` // 登录名
|
||||
AvatarURL string `json:"avatar_url,omitempty"` // 头像地址
|
||||
Name string `json:"name,omitempty"` // 昵称
|
||||
Blog string `json:"blog,omitempty"` // 网站链接
|
||||
Email string `json:"email,omitempty"` // 邮箱
|
||||
Login string `json:"login,omitempty"` // 登录名
|
||||
AvatarURL string `json:"avatar_url,omitempty"` // 头像地址
|
||||
Name string `json:"name,omitempty"` // 昵称
|
||||
Blog string `json:"blog,omitempty"` // 网站链接
|
||||
Email string `json:"email,omitempty"` // 邮箱
|
||||
Hireable bool `json:"hireable,omitempty"`
|
||||
Bio string `json:"bio,omitempty"` // 个人简介
|
||||
|
||||
Token string `gorm:"uniqueIndex" json:"-"` // 认证 Token
|
||||
Token string `json:"-"` // 认证 Token
|
||||
TokenExpired time.Time `json:"token_expired,omitempty"` // Token 过期时间
|
||||
SuperAdmin bool `json:"super_admin,omitempty"` // 超级管理员
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user