1.审计日志处理
This commit is contained in:
@@ -131,4 +131,7 @@ public interface UserFeignClient {
|
||||
@GetMapping("/getColleaguesIdByUserId")
|
||||
HttpResult<List<String>> getColleaguesIdByUserId(@RequestParam("id") String id);
|
||||
|
||||
|
||||
@GetMapping("/userRoleList")
|
||||
HttpResult<Boolean> userRoleList();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user