feat: add oss service factory implements, add support for setting custom upload handler, localstorage and minio oss

This commit is contained in:
RockYang
2023-08-20 22:29:08 +08:00
parent 5a0f272fa8
commit 3dbeb1ccb6
12 changed files with 227 additions and 100 deletions

View File

@@ -8,6 +8,7 @@ import (
logger2 "chatplus/logger"
"chatplus/service"
"chatplus/service/function"
"chatplus/service/oss"
"chatplus/store"
"context"
"embed"
@@ -129,6 +130,7 @@ func main() {
fx.Provide(func(config *types.AppConfig) *service.CaptchaService {
return service.NewCaptchaService(config.ApiConfig)
}),
fx.Provide(oss.NewUploaderManager),
// 注册路由
fx.Invoke(func(s *core.AppServer, h *handler.ChatRoleHandler) {