refactor: unify OAuth providers with i18n support
- Introduce Provider interface pattern for standard OAuth protocols - Create unified controller/oauth.go with common OAuth logic - Add OAuthError type for translatable error messages - Add i18n keys and translations (zh/en) for OAuth messages - Use common.ApiErrorI18n/ApiSuccessI18n for consistent responses - Preserve backward compatibility for existing routes and data
Showing
controller/discord.go
deleted
100644 → 0
controller/github.go
deleted
100644 → 0
controller/linuxdo.go
deleted
100644 → 0
controller/oauth.go
0 → 100644
controller/oidc.go
deleted
100644 → 0
oauth/discord.go
0 → 100644
oauth/github.go
0 → 100644
oauth/linuxdo.go
0 → 100644
oauth/oidc.go
0 → 100644
oauth/provider.go
0 → 100644
oauth/registry.go
0 → 100644
oauth/types.go
0 → 100644
Please
register
or
sign in
to comment