|
|
@@ -16,6 +16,9 @@ public class MicroServicesConfMulti {
|
|
|
@Value("#{sys.endpointUri ?: '10.10.101.23'}")
|
|
|
private String microServiceIp;
|
|
|
|
|
|
+ @Value("#{sys.recommendPort ?: '20102'}")
|
|
|
+ private String recommendPort;
|
|
|
+
|
|
|
public String getMicroServiceIp() {
|
|
|
return microServiceIp;
|
|
|
}
|
|
|
@@ -31,4 +34,8 @@ public class MicroServicesConfMulti {
|
|
|
public String getRequestUrl(int port, String requestUrl, PageParams pageable) {
|
|
|
return String.format("http://%s:%d%s%s", this.microServiceIp, port, requestUrl, "&count=" + pageable.getCount() + "&page=" + pageable.getPage() + "&filter=" + pageable.getFilter());
|
|
|
}
|
|
|
+
|
|
|
+ public String getRecommendUrl(String requestUrl) {
|
|
|
+ return String.format("http://%s:%s%s", this.microServiceIp, this.recommendPort, requestUrl);
|
|
|
+ }
|
|
|
}
|