feat: 绑定 oauth2

This commit is contained in:
naiba committed 2024-12-28 23:50:59 +08:00
1 parent 0364632ebc
commit 8b9afbf39c
15 files changed
+360 -24

No files matched your search

+9
View 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"`
}