Search in sources :

Example 1 with FileUploadRequestDTO

use of com.github.lybgeek.upload.dto.FileUploadRequestDTO in project springboot-learning by lyb-geek.

the class FileController method checkFileMd5.

@RequestMapping(value = "checkFileMd5", method = RequestMethod.POST)
@ResponseBody
public Result<FileUploadDTO> checkFileMd5(String md5, String path) throws IOException {
    FileUploadRequestDTO param = new FileUploadRequestDTO().setPath(path).setMd5(md5);
    FileUploadDTO fileUploadDTO = fileService.checkFileMd5(param);
    return new Result<FileUploadDTO>().setData(fileUploadDTO);
}
Also used : FileUploadRequestDTO(com.github.lybgeek.upload.dto.FileUploadRequestDTO) FileUploadDTO(com.github.lybgeek.upload.dto.FileUploadDTO) RequestMapping(org.springframework.web.bind.annotation.RequestMapping) ResponseBody(org.springframework.web.bind.annotation.ResponseBody)

Aggregations

FileUploadDTO (com.github.lybgeek.upload.dto.FileUploadDTO)1 FileUploadRequestDTO (com.github.lybgeek.upload.dto.FileUploadRequestDTO)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)1