+ 添加autils.NewStoreBossRole
This commit is contained in:
@@ -37,6 +37,10 @@ func NewRole(name string, storeID int) (r *authz.RoleInfo) {
|
||||
return r
|
||||
}
|
||||
|
||||
func NewStoreBossRole(storeID int) (r *authz.RoleInfo) {
|
||||
return NewRole(authz.StoreRoleBoss, storeID)
|
||||
}
|
||||
|
||||
func NewRoleByModel(conf *model.NewConfig) (r *authz.RoleInfo) {
|
||||
if conf.Type != model.ConfigTypeRole {
|
||||
r = NewRole(conf.Key, 0)
|
||||
|
||||
Reference in New Issue
Block a user