| | |
| | | import com.ard.sample.media.service.IMediaService; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | * @param file |
| | | * @return |
| | | */ |
| | | @ApiOperation("检查文件是否已上传") |
| | | @PostMapping("/fast-upload") |
| | | public ResponseResult fastUpload( @RequestBody FileUploadDTO file) { |
| | | |
| | |
| | | * @param file |
| | | * @return |
| | | */ |
| | | @ApiOperation("上报文件基本信息") |
| | | @PostMapping("/upload-callback") |
| | | public ResponseResult<String> uploadCallback(@RequestBody FileUploadDTO file) { |
| | | mediaService.saveMediaFile(file); |
| | |
| | | * But it is not recommended to use Map to receive the parameter. |
| | | * @return |
| | | */ |
| | | @ApiOperation("查询已存在的文件") |
| | | @PostMapping("/files/tiny-fingerprints") |
| | | public ResponseResult<Map<String, List<String>>> uploadCallback( |
| | | @RequestBody Map<String, List<String>> tinyFingerprints){ |