2020-04-08 11:07:27 +08:00
|
|
|
package request
|
|
|
|
|
|
|
|
// Casbin info structure
|
|
|
|
type CasbinInfo struct {
|
2021-04-30 14:14:00 +08:00
|
|
|
Path string `json:"path"` // 路径
|
|
|
|
Method string `json:"method"` // 方法
|
2020-04-08 11:07:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Casbin structure for input parameters
|
|
|
|
type CasbinInReceive struct {
|
2021-04-30 14:14:00 +08:00
|
|
|
AuthorityId string `json:"authorityId"` // 权限id
|
2020-04-08 11:07:27 +08:00
|
|
|
CasbinInfos []CasbinInfo `json:"casbinInfos"`
|
|
|
|
}
|