| | |
| | | import com.ard.common.config.OssConfiguration; |
| | | import com.ard.oss.model.CredentialsDTO; |
| | | import com.ard.oss.service.impl.OssServiceContext; |
| | | import com.ard.sample.common.model.ResponseResult; |
| | | import com.ard.sample.media.model.FileUploadDTO; |
| | | import com.ard.sample.utils.S3PutObjectResponse; |
| | | import io.minio.MinioClient; |
| | | import io.minio.PutObjectArgs; |
| | |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestHeader; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.io.ByteArrayInputStream; |
| | | import java.security.InvalidKeyException; |
| | |
| | | return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("测试") |
| | | @PostMapping("/test") |
| | | public ResponseResult fastUpload() { |
| | | return ResponseResult.success(); |
| | | } |
| | | } |