| | |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | 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; |
| | | |
| | | import java.io.InputStream; |
| | | |
| | | /** |
| | | * 文件服务 |
| | |
| | | |
| | | @PostMapping(value = "/obs/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
| | | public R<String> obsUpload(@RequestPart("file") MultipartFile file); |
| | | |
| | | @PostMapping("/obs/upload/stream") |
| | | public R<String> obsUpload(@RequestParam("code") String code, |
| | | @RequestParam("stream") InputStream stream); |
| | | } |