清理掉无用的casbin缓存刷新,增加重新loadPolicy接口。
This commit is contained in:
@@ -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": [
|
||||
|
||||
@@ -157,6 +157,40 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/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": [
|
||||
|
||||
@@ -1617,6 +1617,25 @@ paths:
|
||||
summary: 删除选中Api
|
||||
tags:
|
||||
- SysApi
|
||||
/api/freshCasbin:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: 刷新成功
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/response.Response'
|
||||
- properties:
|
||||
msg:
|
||||
type: string
|
||||
type: object
|
||||
summary: 刷新casbin缓存
|
||||
tags:
|
||||
- SysApi
|
||||
/api/getAllApis:
|
||||
post:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user