fix:创建用户初始化权限,确保用户可用

修改了:
- server/api/v1/sys_authority.go
- server/model/request/sys_casbin.go
- server/model/request/sys_menu.go
This commit is contained in:
songzhibin97
2021-06-22 12:39:26 +08:00
parent 0cd3555904
commit a2551e86f4
3 changed files with 24 additions and 1 deletions

View File

@@ -11,3 +11,7 @@ type CasbinInReceive struct {
AuthorityId string `json:"authorityId"` // 权限id
CasbinInfos []CasbinInfo `json:"casbinInfos"`
}
func DefaultCasbin() []CasbinInfo {
return []CasbinInfo{{Path: "/menu/getMenu", Method: "POST"}, {Path: "/jwt/jsonInBlacklist", Method: "POST"}}
}