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);
}
Aggregations