- 重构authz结构
- 角色管理初版完成
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package beegodb
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/authz/casbinauth"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/business/model/legacymodel"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
@@ -53,7 +52,7 @@ func Init() {
|
||||
orm.RegisterModel(&model.ActMap{}, &model.ActStoreSkuMap{})
|
||||
orm.RegisterModel(&model.NewConfig{})
|
||||
|
||||
casbinauth.RegisterModel()
|
||||
orm.RegisterModel(&model.CasbinRule{})
|
||||
// create table
|
||||
orm.RunSyncdb("default", false, true)
|
||||
}
|
||||
|
||||
@@ -2,12 +2,10 @@ package testinit
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
"git.rosy.net.cn/jx-callback/globals/api2"
|
||||
"git.rosy.net.cn/jx-callback/globals/testinit1"
|
||||
)
|
||||
|
||||
func Init() {
|
||||
testinit1.Init()
|
||||
api.Init()
|
||||
api2.Init()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user