🏗️ update

This commit is contained in:
2024-12-24 18:01:54 +08:00
parent 89d64336f5
commit e31f95b943
168 changed files with 1337 additions and 14789 deletions

View File

@@ -20,7 +20,7 @@ func NewCasbin(engine *gorm.DB) *casbin.SyncedCachedEnforcer {
if err != nil {
panic(err)
}
path := filepath.Join(cwd, "etc", "rbac_model.conf")
path := filepath.Join(cwd, "/api/etc", "rbac_model.conf")
modelFile, err := model.NewModelFromFile(path)
if err != nil {
panic(err)