|
|
@ -21,8 +21,10 @@ public class PostToAiExtractDomainServiceImpl implements PostToAiExtractDomainSe |
|
|
@Resource(name = "algorithmWebClient") |
|
|
@Resource(name = "algorithmWebClient") |
|
|
private WebClient algorithmWebClient; |
|
|
private WebClient algorithmWebClient; |
|
|
|
|
|
|
|
|
|
|
|
@Value("${algo.apiUrl:http://172.16.204.50:8000}") |
|
|
|
|
|
private String apiUrl; |
|
|
/** 算法服务知识点提取路径 */ |
|
|
/** 算法服务知识点提取路径 */ |
|
|
@Value("${algo.extractUrl:http://172.16.204.50:8000/v1/key_points/extract}") |
|
|
@Value("${algo.extractUrl:/v1/key_points/extract}") |
|
|
private String extractUrl; |
|
|
private String extractUrl; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@ -30,7 +32,7 @@ public class PostToAiExtractDomainServiceImpl implements PostToAiExtractDomainSe |
|
|
try { |
|
|
try { |
|
|
log.info(">>> [Interactor] 正在向算法端发送知识点提取请求, informationId: {}", request.getInformationId()); |
|
|
log.info(">>> [Interactor] 正在向算法端发送知识点提取请求, informationId: {}", request.getInformationId()); |
|
|
algorithmWebClient.post() |
|
|
algorithmWebClient.post() |
|
|
.uri(extractUrl) |
|
|
.uri(apiUrl+extractUrl) |
|
|
.bodyValue(request) |
|
|
.bodyValue(request) |
|
|
.retrieve() |
|
|
.retrieve() |
|
|
.bodyToMono(String.class) |
|
|
.bodyToMono(String.class) |
|
|
|