casbin相关操作修改为事务
This commit is contained in:
@@ -221,7 +221,7 @@ func (s *SystemApiApi) DeleteApisByIds(c *gin.Context) {
|
||||
// @Success 200 {object} response.Response{msg=string} "刷新成功"
|
||||
// @Router /api/freshCasbin [get]
|
||||
func (s *SystemApiApi) FreshCasbin(c *gin.Context) {
|
||||
err := apiService.FreshCasbin()
|
||||
err := casbinService.FreshCasbin()
|
||||
if err != nil {
|
||||
global.GVA_LOG.Error("刷新失败!", zap.Error(err))
|
||||
response.FailWithMessage("刷新失败", c)
|
||||
|
||||
Reference in New Issue
Block a user