🗑 优化无效数据清理

This commit is contained in:
naiba
2021-07-19 20:27:21 +08:00
parent 438a8c393c
commit bb966b2c82
5 changed files with 6 additions and 8 deletions

View File

@@ -22,8 +22,6 @@ type User struct {
Token string `gorm:"UNIQUE_INDEX" json:"-"` // 认证 Token
TokenExpired time.Time `json:"token_expired,omitempty"` // Token 过期时间
SuperAdmin bool `json:"super_admin,omitempty"` // 超级管理员
TeamsID []uint64 `gorm:"-"`
}
func NewUserFromGitHub(gu *github.User) User {