修正文档中心sdk问题
This commit is contained in:
@ -18,8 +18,8 @@ import com.chinaunicom.ebtp.mall.cloud.attachment.sdk.fallback.DocumentCenterSer
|
||||
*
|
||||
* @author Ajaxfan
|
||||
*/
|
||||
//@FeignClient(name = "DocumentCenterService", url = "${document.center.ip-address}", fallback = DocumentCenterServiceFallback.class)
|
||||
@FeignClient(name = "${document.center.service.id}", fallback = DocumentCenterServiceFallback.class)
|
||||
@FeignClient(name = "DocumentCenterService", url = "${document.center.ip-address}", fallback = DocumentCenterServiceFallback.class)
|
||||
//@FeignClient(value = "core-service-document-center", fallback = DocumentCenterServiceFallback.class)
|
||||
public interface DocumentCenterService {
|
||||
|
||||
/**
|
||||
@ -28,7 +28,7 @@ public interface DocumentCenterService {
|
||||
* @param fileId
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(method = RequestMethod.POST, value = "v1.0/files/downloadFileAllStream")
|
||||
@RequestMapping(method = RequestMethod.POST, value = "/v1.0/files/downloadFileAllStream")
|
||||
String getObjectDetail(@RequestParam("fileId") String fileId);
|
||||
|
||||
/**
|
||||
@ -37,7 +37,7 @@ public interface DocumentCenterService {
|
||||
* @param bids
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(method = RequestMethod.POST, value = "v1.0/files/queryReturn")
|
||||
@RequestMapping(method = RequestMethod.POST, value = "/v1.0/files/queryReturn")
|
||||
String fetchDetails(@RequestBody List<String> bids);
|
||||
|
||||
/**
|
||||
@ -55,7 +55,7 @@ public interface DocumentCenterService {
|
||||
* @param fileId
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(method = RequestMethod.POST, value = "v1.0/files/disk")
|
||||
@RequestMapping(method = RequestMethod.POST, value = "/v1.0/files/disk")
|
||||
String deleteByOid(@RequestParam("fileId") String fileId);
|
||||
|
||||
}
|
||||
|
@ -4,4 +4,4 @@ hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=600000
|
||||
|
||||
# document center id
|
||||
document.center.service.id=core-service-document-center
|
||||
document.center.ip-address=http://10.242.31.158:8801/
|
||||
document.center.ip-address-default=http://10.242.31.158:8801/
|
Reference in New Issue
Block a user