修正了common包增加cookie连接的bug
This commit is contained in:
@ -14,7 +14,7 @@ import com.chinaunicom.ebtp.mall.cloud.attachment.sdk.convertor.ModelConvertor;
|
||||
@ComponentScan(basePackages = "com.chinaunicom.ebtp.mall.cloud.attachment.sdk")
|
||||
@PropertySource("classpath:attachment-sdk-cofiguration.properties")
|
||||
public class SDKAutoConfiguration {
|
||||
|
||||
|
||||
/**
|
||||
* @return 数据模型转换器
|
||||
*/
|
||||
@ -22,7 +22,7 @@ public class SDKAutoConfiguration {
|
||||
public ModelConvertor modelConvertor() {
|
||||
return new ModelConvertor();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return 文件转换器
|
||||
*/
|
||||
|
@ -41,6 +41,7 @@ public class ModelConvertor {
|
||||
* @return
|
||||
*/
|
||||
public Optional<AttachmentEntity> toAttachmentEntity(String json) {
|
||||
log.debug("toAttachmentEntity: {}", json);
|
||||
return Optional.ofNullable(json).map(content -> {
|
||||
AttachmentEntity entity = null;
|
||||
|
||||
|
@ -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(value = "core-service-document-center", fallback = DocumentCenterServiceFallback.class)
|
||||
//@FeignClient(name = "DocumentCenterService", url = "${document.center.ip-address}", fallback = DocumentCenterServiceFallback.class)
|
||||
@FeignClient(name = "${document.center.service.id}", 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);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user