mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-09 02:33:42 +08:00
feat: support wechat login function
This commit is contained in:
@@ -15,5 +15,7 @@ type User struct {
|
||||
Status bool `gorm:"default:true"` // 当前状态
|
||||
LastLoginAt int64 // 最后登录时间
|
||||
LastLoginIp string // 最后登录 IP
|
||||
OpenId string `gorm:"column:openid"`
|
||||
Platform string `json:"platform"`
|
||||
Vip bool // 是否 VIP 会员
|
||||
}
|
||||
|
||||
@@ -14,4 +14,6 @@ type User struct {
|
||||
LastLoginAt int64 `json:"last_login_at"` // 最后登录时间
|
||||
LastLoginIp string `json:"last_login_ip"` // 最后登录 IP
|
||||
Vip bool `json:"vip"`
|
||||
OpenId string `json:"openid"` // 第三方登录 OpenID
|
||||
Platform string `json:"platform"` // 第三方登录平台
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user