ProjectImportController.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package cn.cslg.pas.controller;
  2. import cn.cslg.pas.common.core.base.Constants;
  3. import cn.cslg.pas.common.dto.ExcelImportDTO;
  4. import cn.cslg.pas.common.utils.Response;
  5. import cn.cslg.pas.service.importPatent.ProjectImportService;
  6. import io.swagger.v3.oas.annotations.Operation;
  7. import lombok.RequiredArgsConstructor;
  8. import lombok.extern.slf4j.Slf4j;
  9. import org.springframework.web.bind.annotation.PostMapping;
  10. import org.springframework.web.bind.annotation.RequestMapping;
  11. import org.springframework.web.bind.annotation.RestController;
  12. import org.springframework.web.multipart.MultipartFile;
  13. import java.io.IOException;
  14. /**
  15. * @author chenyu
  16. * @date 2023/10/23
  17. */
  18. @Slf4j
  19. @RequiredArgsConstructor
  20. @RequestMapping(Constants.API_XiaoSHI + "/import")
  21. @RestController
  22. public class ProjectImportController {
  23. // private final ProjectImportService projectImportService;
  24. //
  25. // @Operation(summary = "Excel导入专利任务")
  26. // @PostMapping("/excelImport")
  27. // public String excelImport(MultipartFile file, ExcelImportDTO excelImportDTO) throws IOException {
  28. // projectImportService.addExcelImportTask(file, excelImportDTO);
  29. // return Response.success();
  30. // }
  31. //
  32. // @Operation(summary = "检索导入专利任务")
  33. // @PostMapping("/patentStarImport")
  34. // public String patentStarImport(ExcelImportDTO excelImportDTO) throws IOException {
  35. // return Response.success();
  36. // }
  37. }