现场测试问题
预告警单
This commit is contained in:
@@ -124,4 +124,11 @@ public interface UserFeignClient {
|
||||
@PostMapping("/getUserVOByIdList")
|
||||
HttpResult<List<UserVO>> getUserVOByIdList(@RequestBody List<String> ids);
|
||||
|
||||
/**
|
||||
* 根据用户id获取该用户同部门下所有的所有用户id
|
||||
* @param id 用户id
|
||||
*/
|
||||
@GetMapping("/getColleaguesIdByUserId")
|
||||
HttpResult<List<String>> getColleaguesIdByUserId(@RequestParam("id") String id);
|
||||
|
||||
}
|
||||
|
||||
@@ -117,6 +117,12 @@ public class UserFeignClientFallbackFactory implements FallbackFactory<UserFeign
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<String>> getColleaguesIdByUserId(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}","根据用户id获取该用户同部门下所有的所有用户id",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user