1.审计日志处理

This commit is contained in:
cdf
2024-08-29 15:39:16 +08:00
parent 476993db15
commit 0a121a3cf5
13 changed files with 129 additions and 5 deletions

View File

@@ -131,4 +131,7 @@ public interface UserFeignClient {
@GetMapping("/getColleaguesIdByUserId")
HttpResult<List<String>> getColleaguesIdByUserId(@RequestParam("id") String id);
@GetMapping("/userRoleList")
HttpResult<Boolean> userRoleList();
}

View File

@@ -123,6 +123,12 @@ public class UserFeignClientFallbackFactory implements FallbackFactory<UserFeign
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<Boolean> userRoleList() {
log.error("{}异常,降级处理,异常为:{}","获取所有用户角色",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}
}