mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-16 06:53:30 +08:00
Remove ALL Sora code — client, gateway, generation, S3 storage, accounts, media, SDK, quota, scheduling, billing, OAuth, settings, and frontend UI. Backend: 60+ files deleted/cleaned, including service layer (scheduling, billing, token provider), handler layer (client/gateway handlers, DTOs), repository layer (sora repos), config, wire DI, routes, domain constants. Frontend: 14 files deleted + 29 files cleaned, including components, views, API clients, composables, i18n keys, types, router entries. Cloudflare challenge detection migrated from soraerror to httputil package. Migration files retained (046/047/063/070) to preserve DB migration history. 136 files changed, ~24,300 lines removed. All tests pass.
57 lines
1.9 KiB
Go
57 lines
1.9 KiB
Go
package handler
|
|
|
|
import (
|
|
"github.com/Wei-Shaw/sub2api/internal/handler/admin"
|
|
)
|
|
|
|
// AdminHandlers contains all admin-related HTTP handlers
|
|
type AdminHandlers struct {
|
|
Dashboard *admin.DashboardHandler
|
|
User *admin.UserHandler
|
|
Group *admin.GroupHandler
|
|
Account *admin.AccountHandler
|
|
Announcement *admin.AnnouncementHandler
|
|
DataManagement *admin.DataManagementHandler
|
|
Backup *admin.BackupHandler
|
|
OAuth *admin.OAuthHandler
|
|
OpenAIOAuth *admin.OpenAIOAuthHandler
|
|
GeminiOAuth *admin.GeminiOAuthHandler
|
|
AntigravityOAuth *admin.AntigravityOAuthHandler
|
|
Proxy *admin.ProxyHandler
|
|
Redeem *admin.RedeemHandler
|
|
Promo *admin.PromoHandler
|
|
Setting *admin.SettingHandler
|
|
Ops *admin.OpsHandler
|
|
System *admin.SystemHandler
|
|
Subscription *admin.SubscriptionHandler
|
|
Usage *admin.UsageHandler
|
|
UserAttribute *admin.UserAttributeHandler
|
|
ErrorPassthrough *admin.ErrorPassthroughHandler
|
|
TLSFingerprintProfile *admin.TLSFingerprintProfileHandler
|
|
APIKey *admin.AdminAPIKeyHandler
|
|
ScheduledTest *admin.ScheduledTestHandler
|
|
Channel *admin.ChannelHandler
|
|
}
|
|
|
|
// Handlers contains all HTTP handlers
|
|
type Handlers struct {
|
|
Auth *AuthHandler
|
|
User *UserHandler
|
|
APIKey *APIKeyHandler
|
|
Usage *UsageHandler
|
|
Redeem *RedeemHandler
|
|
Subscription *SubscriptionHandler
|
|
Announcement *AnnouncementHandler
|
|
Admin *AdminHandlers
|
|
Gateway *GatewayHandler
|
|
OpenAIGateway *OpenAIGatewayHandler
|
|
Setting *SettingHandler
|
|
Totp *TotpHandler
|
|
}
|
|
|
|
// BuildInfo contains build-time information
|
|
type BuildInfo struct {
|
|
Version string
|
|
BuildType string // "source" for manual builds, "release" for CI builds
|
|
}
|