feat 初始化

This commit is contained in:
2026-10-29 10:12:22 +08:00
parent 332d812347
commit 09c1df8a22
81 changed files with 2211 additions and 7821 deletions

21
module/cos.go Normal file
View File

@@ -0,0 +1,21 @@
package module
import (
"git.hlsq.asia/alex/service-common/config"
"git.hlsq.asia/alex/service-common/cos"
)
// Cos 对象存储模块
type Cos struct {
DefaultModule
Cfg map[string]*config.CosConfig
}
func (m *Cos) Init() error {
if cfg, ok := m.Cfg["tencent"]; ok {
if err := cos.InitTencent(cfg); err != nil {
return err
}
}
return nil
}