fix(backend): 修复 rebase 后的代码集成问题

- 更新 middleware import 路径到 internal/server/middleware
- 修复 api_key_auth_google.go 使用正确的 service 类型
- 更新 router.go 和 http.go 支持 Gemini v1beta 路由
- 在 routes/gateway.go 中添加 Gemini v1beta API 端点
- 在 routes/admin.go 中添加 Gemini OAuth 路由
- 更新 wire.go 添加 GeminiOAuthService cleanup
- 重新生成 wire_gen.go
This commit is contained in:
ianshaw
2025-12-26 00:17:55 -08:00
parent 3559830882
commit 9780f0fd9d
8 changed files with 89 additions and 366 deletions

View File

@@ -69,6 +69,7 @@ func provideCleanup(
emailQueue *service.EmailQueueService,
oauth *service.OAuthService,
openaiOAuth *service.OpenAIOAuthService,
geminiOAuth *service.GeminiOAuthService,
) func() {
return func() {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
@@ -100,7 +101,7 @@ func provideCleanup(
return nil
}},
{"GeminiOAuthService", func() error {
services.GeminiOAuth.Stop()
geminiOAuth.Stop()
return nil
}},
{"Redis", func() error {