package middleware

type UrlInfo struct {
	Url    string
	Method string
}

// CasbinExclude casbin 排除的路由列表
var CasbinExclude = []UrlInfo{
	{Url: "/api/dict/type-option-select", Method: "GET"},
	{Url: "/api/dict-data/option-select", Method: "GET"},
	{Url: "/api/organTree", Method: "GET"},
	{Url: "/api/db/tables/page", Method: "GET"},
	{Url: "/api/db/columns/page", Method: "GET"},
	{Url: "/api/gen/toproject/:tableId", Method: "GET"},
	{Url: "/api/gen/todb/:tableId", Method: "GET"},
	{Url: "/api/gen/tabletree", Method: "GET"},
	{Url: "/api/gen/preview/:tableId", Method: "GET"},
	{Url: "/api/gen/apitofile/:tableId", Method: "GET"},
	{Url: "/api/getCaptcha", Method: "GET"},
	{Url: "/api/getinfo", Method: "GET"},
	{Url: "/api/menurole", Method: "GET"},
	{Url: "/api/roleMenuTreeselect/:roleId", Method: "GET"},
	{Url: "/api/roleDeptTreeselect/:roleId", Method: "GET"},
	{Url: "/api/refresh_token", Method: "GET"},
	{Url: "/api/configKey/:configKey", Method: "GET"},
	{Url: "/api/app-config", Method: "GET"},
	{Url: "/api/user/profile", Method: "GET"},
	{Url: "/info", Method: "GET"},
	{Url: "/api/login", Method: "POST"},
	{Url: "/api/logout", Method: "POST"},
	{Url: "/api/user/pwd/set", Method: "PUT"},
	{Url: "/api/metrics", Method: "GET"},
	{Url: "/api/health", Method: "GET"},
	{Url: "/", Method: "GET"},
	{Url: "/api/server-monitor", Method: "GET"},
	{Url: "/api/public/uploadFile", Method: "POST"},
	{Url: "/api/public/download", Method: "GET"},
}

// LogExclude log 排除的路由列表
var LogExclude = []UrlInfo{
	{Url: "/api/public/uploadFile", Method: "POST"},
	{Url: "/api/public/download", Method: "GET"},
}
