mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-18 23:30:25 +08:00
refactor: oauth2登录重构
This commit is contained in:
10
server/internal/auth/domain/repository/oauth2.go
Normal file
10
server/internal/auth/domain/repository/oauth2.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package repository
|
||||
|
||||
import "mayfly-go/internal/auth/domain/entity"
|
||||
|
||||
type Oauth2Account interface {
|
||||
// GetOAuthAccount 根据identity获取第三方账号信息
|
||||
GetOAuthAccount(condition *entity.Oauth2Account, cols ...string) error
|
||||
|
||||
SaveOAuthAccount(e *entity.Oauth2Account) error
|
||||
}
|
||||
Reference in New Issue
Block a user