feat: rbac完善,file接入完成

This commit is contained in:
Blizzard
2026-05-01 12:56:08 +08:00
parent bbd3f834b9
commit a93477ea8e
81 changed files with 5470 additions and 371 deletions
+4 -1
View File
@@ -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)
}