feat: 添加oss api
This commit is contained in:
+4
-2
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user