feat: backend core - auth, user, role, permission, device, webhook, monitoring, cache, repository, service, middleware, API handlers
This commit is contained in:
26
internal/auth/errors.go
Normal file
26
internal/auth/errors.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package auth
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
// ErrOAuthProviderNotSupported OAuth提供商不支持
|
||||
ErrOAuthProviderNotSupported = errors.New("OAuth provider not supported")
|
||||
|
||||
// ErrOAuthCodeInvalid OAuth授权码无效
|
||||
ErrOAuthCodeInvalid = errors.New("OAuth authorization code is invalid")
|
||||
|
||||
// ErrOAuthTokenExpired OAuth令牌已过期
|
||||
ErrOAuthTokenExpired = errors.New("OAuth token has expired")
|
||||
|
||||
// ErrOAuthUserInfoFailed 获取OAuth用户信息失败
|
||||
ErrOAuthUserInfoFailed = errors.New("failed to get OAuth user info")
|
||||
|
||||
// ErrOAuthStateInvalid OAuth状态验证失败
|
||||
ErrOAuthStateInvalid = errors.New("OAuth state validation failed")
|
||||
|
||||
// ErrOAuthAlreadyBound 社交账号已绑定
|
||||
ErrOAuthAlreadyBound = errors.New("social account already bound")
|
||||
|
||||
// ErrOAuthNotFound 未找到绑定的社交账号
|
||||
ErrOAuthNotFound = errors.New("social account not found")
|
||||
)
|
||||
Reference in New Issue
Block a user