settings.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package middleware
  2. type UrlInfo struct {
  3. Url string
  4. Method string
  5. }
  6. // CasbinExclude casbin 排除的路由列表
  7. var CasbinExclude = []UrlInfo{
  8. {Url: "/api/dict/type-option-select", Method: "GET"},
  9. {Url: "/api/dict-data/option-select", Method: "GET"},
  10. {Url: "/api/organTree", Method: "GET"},
  11. {Url: "/api/db/tables/page", Method: "GET"},
  12. {Url: "/api/db/columns/page", Method: "GET"},
  13. {Url: "/api/gen/toproject/:tableId", Method: "GET"},
  14. {Url: "/api/gen/todb/:tableId", Method: "GET"},
  15. {Url: "/api/gen/tabletree", Method: "GET"},
  16. {Url: "/api/gen/preview/:tableId", Method: "GET"},
  17. {Url: "/api/gen/apitofile/:tableId", Method: "GET"},
  18. {Url: "/api/getCaptcha", Method: "GET"},
  19. {Url: "/api/getinfo", Method: "GET"},
  20. {Url: "/api/menurole", Method: "GET"},
  21. {Url: "/api/roleMenuTreeselect/:roleId", Method: "GET"},
  22. {Url: "/api/roleDeptTreeselect/:roleId", Method: "GET"},
  23. {Url: "/api/refresh_token", Method: "GET"},
  24. {Url: "/api/configKey/:configKey", Method: "GET"},
  25. {Url: "/api/app-config", Method: "GET"},
  26. {Url: "/api/user/profile", Method: "GET"},
  27. {Url: "/info", Method: "GET"},
  28. {Url: "/api/login", Method: "POST"},
  29. {Url: "/api/logout", Method: "POST"},
  30. {Url: "/api/user/pwd/set", Method: "PUT"},
  31. {Url: "/api/metrics", Method: "GET"},
  32. {Url: "/api/health", Method: "GET"},
  33. {Url: "/", Method: "GET"},
  34. {Url: "/api/server-monitor", Method: "GET"},
  35. {Url: "/api/public/uploadFile", Method: "POST"},
  36. {Url: "/api/public/download", Method: "GET"},
  37. }
  38. // LogExclude log 排除的路由列表
  39. var LogExclude = []UrlInfo{
  40. {Url: "/api/public/uploadFile", Method: "POST"},
  41. {Url: "/api/public/download", Method: "GET"},
  42. }