feat: 添加oss api

This commit is contained in:
Blizzard
2025-10-11 15:13:58 +08:00
parent 237ac665e6
commit 7e282b36d7
21 changed files with 545 additions and 5 deletions
+4 -2
View File
@@ -1,11 +1,12 @@
package initialize
import (
"go.uber.org/zap"
"gorm.io/gorm"
"os"
"sundynix-go/global"
"sundynix-go/model/system"
"go.uber.org/zap"
"gorm.io/gorm"
)
// Gorm 根据全局配置中的数据库类型返回对应的 *gorm.DB 实例。
@@ -35,6 +36,7 @@ func MigrateTable() {
system.Role{},
system.Menu{},
system.SysOperationRecord{},
system.Oss{},
)
if err != nil {
global.Logger.Error("Migrate table failed,err:", zap.Error(err))