| | |
| | | return aiProductQuestionService.stateUpdate(ids, type); |
| | | } |
| | | |
| | | @PostMapping(value = "jobStateUpdate/{ids}") |
| | | @ControllerEndpoint(operation = "更新", exceptionMessage = "操作失败") |
| | | public FebsResponse jobStateUpdate(@PathVariable("ids") String ids) { |
| | | return aiProductQuestionService.jobStateUpdate(ids); |
| | | } |
| | | |
| | | @PostMapping(value = "productQuestionDelete/{ids}") |
| | | @ControllerEndpoint(operation = "删除", exceptionMessage = "操作失败") |
| | | public FebsResponse productQuestionDelete(@PathVariable("ids") String ids) { |
| | |
| | | |
| | | @PostMapping(value = "/importNewProductQuestion") |
| | | @ControllerEndpoint(operation = "模板导入", exceptionMessage = "操作失败") |
| | | public FebsResponse importNewProductQuestion(@RequestBody MultipartFile file, @RequestParam String categoryId){ |
| | | public FebsResponse importNewProductQuestion(@RequestBody MultipartFile file, @RequestParam String categoryId, @RequestParam Integer difficulty){ |
| | | |
| | | String companyId = getCurrentUserCompanyId(); |
| | | return aiProductQuestionService.importNewProductQuestion(file, categoryId, companyId); |
| | | return aiProductQuestionService.importNewProductQuestion(file, categoryId, companyId,difficulty); |
| | | } |
| | | } |