| | |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestPart; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import com.ruoyi.common.core.domain.R; |
| | |
| | | * 文件上传请求 |
| | | */ |
| | | @PostMapping("uploadOSS") |
| | | public R<String> uploadOSS(MultipartFile file) |
| | | public R<String> uploadOSS(@RequestPart("file")MultipartFile file) |
| | | { |
| | | try |
| | | { |