|
@ -10,9 +10,7 @@ package com.epmet.feign; |
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.constant.ServiceConstant; |
|
|
import com.epmet.commons.tools.constant.ServiceConstant; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.dto.form.TestFormDTO; |
|
|
|
|
|
import com.epmet.dto.result.UploadImgResultDTO; |
|
|
import com.epmet.dto.result.UploadImgResultDTO; |
|
|
import com.epmet.feign.fallback.OssFeignClientFallback; |
|
|
|
|
|
import com.epmet.feign.fallback.OssFeignClientFallbackFactory; |
|
|
import com.epmet.feign.fallback.OssFeignClientFallbackFactory; |
|
|
import feign.codec.Encoder; |
|
|
import feign.codec.Encoder; |
|
|
import feign.form.spring.SpringFormEncoder; |
|
|
import feign.form.spring.SpringFormEncoder; |
|
@ -20,13 +18,10 @@ import org.springframework.cloud.openfeign.FeignClient; |
|
|
import org.springframework.context.annotation.Bean; |
|
|
import org.springframework.context.annotation.Bean; |
|
|
import org.springframework.http.MediaType; |
|
|
import org.springframework.http.MediaType; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
import org.springframework.web.bind.annotation.RequestPart; |
|
|
import org.springframework.web.bind.annotation.RequestPart; |
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
|
|
|
|
import java.net.UnknownHostException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* OSS |
|
|
* OSS |
|
|
* |
|
|
* |
|
@ -74,7 +69,7 @@ public interface OssFeignClient { |
|
|
* @author wxz |
|
|
* @author wxz |
|
|
* @date 2021.08.05 16:28 |
|
|
* @date 2021.08.05 16:28 |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("/oss/test/test-ribbon-rcv") |
|
|
@PostMapping("/oss/test/test-ribbon-rcv/{sleep}") |
|
|
Result testRibbonRcv(@RequestBody TestFormDTO input); |
|
|
Result testRibbonRcv(@RequestParam("sleep") Long sleep); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|