mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
feat: 绑定 oauth2
This commit is contained in:
9
model/oauth2bind.go
Normal file
9
model/oauth2bind.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package model
|
||||
|
||||
type Oauth2Bind struct {
|
||||
Common
|
||||
|
||||
UserID uint64 `gorm:"uniqueIndex:u_p_o" json:"user_id,omitempty"`
|
||||
Provider string `gorm:"uniqueIndex:u_p_o" json:"provider,omitempty"`
|
||||
OpenID string `gorm:"uniqueIndex:u_p_o" json:"open_id,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user