| | |
| | | public FebsResponse importDeliver(@RequestBody MultipartFile file){ |
| | | return aiProductQuestionService.importDeliver(file); |
| | | } |
| | | |
| | | @PostMapping("updateLabel") |
| | | @ControllerEndpoint(operation = "更新标签", exceptionMessage = "操作失败") |
| | | public FebsResponse updateLabel(@RequestBody @Valid AiProductQuestion dto) { |
| | | |
| | | return aiProductQuestionService.updateLabel(dto.getIds(), dto.getLabel()); |
| | | } |
| | | |
| | | @GetMapping("exportNewProductQuestion") |
| | | @ControllerEndpoint(operation = "模板导出", exceptionMessage = "操作失败") |
| | | public FebsResponse exportNewProductQuestion(AiProductQuestion dto, HttpServletResponse response) throws IOException { |
| | | aiProductQuestionService.exportNewProductQuestion(dto, response); |
| | | return null; |
| | | } |
| | | |
| | | @PostMapping(value = "/importNewProductQuestion") |
| | | @ControllerEndpoint(operation = "模板导入", exceptionMessage = "操作失败") |
| | | public FebsResponse importNewProductQuestion(@RequestBody MultipartFile file, @RequestParam String categoryId){ |
| | | |
| | | String companyId = getCurrentUserCompanyId(); |
| | | return aiProductQuestionService.importNewProductQuestion(file, categoryId, companyId); |
| | | } |
| | | } |