| | |
| | | * |
| | | * @author kelu |
| | | */ |
| | | import feign.Body; |
| | | import feign.Headers; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.InputStream; |
| | | |
| | | @FeignClient( |
| | | value = AppConstant.APPLICATION_RESOURCE_NAME, |
| | | fallback = IOssClientFallback.class |
| | |
| | | // ,@RequestParam("resGuid")String resGuid |
| | | // ) throws IOException; |
| | | |
| | | |
| | | String UPLOAD_FILE = API_PREFIX + "uploadFile"; |
| | | |
| | | @PostMapping(value = UPLOAD_FILE,consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
| | | String uploadFile(@RequestParam("fileName") String fileName, @RequestPart("file") MultipartFile file) throws Exception; |
| | | } |