fix: upload ai table exports to oss

This commit is contained in:
richjohnrambo
2026-09-29 16:50:36 +08:00
parent 9cb8c4d93a
commit 192ab342f6
7 changed files with 220 additions and 10 deletions
+3 -2
View File
@@ -24,6 +24,7 @@ type API struct {
auth *auth.Authenticator
events events.Publisher
authCfg config.AuthConfig
manager config.ManagerConfig
ai *ai.Service
}
@@ -34,11 +35,11 @@ const (
maxMailboxContentLength = 5000
)
func New(st *store.Store, authenticator *auth.Authenticator, publisher events.Publisher, authCfg config.AuthConfig, aiService *ai.Service) *API {
func New(st *store.Store, authenticator *auth.Authenticator, publisher events.Publisher, authCfg config.AuthConfig, managerCfg config.ManagerConfig, aiService *ai.Service) *API {
if publisher == nil {
publisher = events.NoopPublisher{}
}
return &API{store: st, auth: authenticator, events: publisher, authCfg: authCfg, ai: aiService}
return &API{store: st, auth: authenticator, events: publisher, authCfg: authCfg, manager: managerCfg, ai: aiService}
}
func (a *API) Register(mux *http.ServeMux) {