清理掉无用的casbin缓存刷新,增加重新loadPolicy接口。

This commit is contained in:
piexlMax
2023-06-03 15:09:25 +08:00
parent a60637fb79
commit 0bed3bab98
10 changed files with 162 additions and 13 deletions

View File

@@ -166,6 +166,40 @@ const docTemplate = `{
}
}
},
"/api/freshCasbin": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"SysApi"
],
"summary": "刷新casbin缓存",
"responses": {
"200": {
"description": "刷新成功",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/api/getAllApis": {
"post": {
"security": [