清理掉无用的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

@@ -130,3 +130,17 @@ export const deleteApisByIds = (data) => {
data
})
}
// FreshCasbin
// @Tags SysApi
// @Summary 刷新casbin缓存
// @accept application/json
// @Produce application/json
// @Success 200 {object} response.Response{msg=string} "刷新成功"
// @Router /api/freshCasbin [get]
export const freshCasbin = () => {
return service({
url: '/api/freshCasbin',
method: 'get'
})
}