You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
480 B

  1. package request
  2. // Casbin info structure
  3. type CasbinInfo struct {
  4. Path string `json:"path"` // 路径
  5. Method string `json:"method"` // 方法
  6. }
  7. // Casbin structure for input parameters
  8. type CasbinInReceive struct {
  9. AuthorityId string `json:"authorityId"` // 权限id
  10. CasbinInfos []CasbinInfo `json:"casbinInfos"`
  11. }
  12. func DefaultCasbin() []CasbinInfo {
  13. return []CasbinInfo{{Path: "/menu/getMenu", Method: "POST"}, {Path: "/jwt/jsonInBlacklist", Method: "POST"}}
  14. }