流转工作流程
This commit is contained in:
@@ -121,4 +121,7 @@ public interface UserFeignClient {
|
||||
@PostMapping("/getUserListByIds")
|
||||
HttpResult<List<User>> getUserListByIds(@RequestBody List<String> ids);
|
||||
|
||||
@PostMapping("/getUserVOByIdList")
|
||||
HttpResult<List<UserVO>> getUserVOByIdList(@RequestBody List<String> ids);
|
||||
|
||||
}
|
||||
|
||||
@@ -111,6 +111,12 @@ public class UserFeignClientFallbackFactory implements FallbackFactory<UserFeign
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<UserVO>> getUserVOByIdList(List<String> ids) {
|
||||
log.error("{}异常,降级处理,异常为:{}","根据用户id集合获取用户集合",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user