package api2 import ( "gitrosy.jxc4.com/jx-callback/business/authz" "gitrosy.jxc4.com/jx-callback/business/authz/casbinauth" "gitrosy.jxc4.com/jx-callback/globals" ) var ( RoleMan authz.IAuthz ) func Init() { RoleMan2, err := casbinauth.New("conf/rbac_model.conf") if err != nil { globals.SugarLogger.Error(err.Error()) } else { RoleMan = RoleMan2 } }