Administrator
2026-02-12 b59514011cde1377ccb2cf3ca96cd7673efc874d
src/main/java/cc/mrbird/febs/ai/controller/productQuestion/AiProductQuestionController.java
@@ -153,4 +153,19 @@
        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, @RequestParam Integer difficulty){
        String companyId = getCurrentUserCompanyId();
        return aiProductQuestionService.importNewProductQuestion(file, categoryId, companyId,difficulty);
    }
}