feat: rbac完善,file接入完成
This commit is contained in:
@@ -25,7 +25,10 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
panic(err)
|
||||
}
|
||||
// 自动迁移
|
||||
if err := db.AutoMigrate(&fileModel.SundynixOss{}); err != nil {
|
||||
if err := db.AutoMigrate(
|
||||
&fileModel.SundynixOss{},
|
||||
&fileModel.StorageConfig{},
|
||||
); err != nil {
|
||||
logx.Errorf("数据库迁移失败: %v", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user