feat: 绑定 oauth2

This commit is contained in:
naiba
2024-12-28 23:50:59 +08:00
parent 8554f3eba7
commit 18020939da
15 changed files with 360 additions and 24 deletions

View File

@@ -42,7 +42,8 @@ func (u *User) BeforeSave(tx *gorm.DB) error {
type Profile struct {
User
LoginIP string `json:"login_ip,omitempty"`
LoginIP string `json:"login_ip,omitempty"`
Oauth2Bind map[string]string `json:"oauth2_bind,omitempty"`
}
type OnlineUser struct {