|
|
@ -16,9 +16,9 @@ import feign.codec.Encoder; |
|
|
|
import feign.form.spring.SpringFormEncoder; |
|
|
|
import org.springframework.cloud.openfeign.FeignClient; |
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
import org.springframework.http.MediaType; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RequestPart; |
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
|
|
@ -45,6 +45,15 @@ public interface OssFeignClient { |
|
|
|
@PostMapping(value ="oss/file/uploadqrcode", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
|
|
|
Result<UploadImgResultDTO> uploadQrCode(@RequestPart(value = "file") MultipartFile file); |
|
|
|
|
|
|
|
/** |
|
|
|
* 运营端生成小程序体验码,传递客户Id |
|
|
|
* @param file 文件 |
|
|
|
* @param file 文件 |
|
|
|
* @author sun |
|
|
|
*/ |
|
|
|
@PostMapping(value ="oss/file/uploadqrcodeV2", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
|
|
|
Result<UploadImgResultDTO> uploadQrCodeV2(@RequestPart(value = "file") MultipartFile file, @RequestParam("customerId") String customerId); |
|
|
|
|
|
|
|
|
|
|
|
//@Configuration
|
|
|
|
class MultipartSupportConfig { |
|
|
|