| | |
| | | |
| | | @GetMapping("list") |
| | | public FebsResponse list(AiProduct dto, QueryRequest request) { |
| | | |
| | | String companyId = getCurrentUserCompanyId(); |
| | | dto.setCompanyId(companyId); |
| | | Map<String, Object> data = getDataTable(aiProductService.listInPage(dto, request)); |
| | | return new FebsResponse().success().data(data); |
| | | } |
| | |
| | | @ControllerEndpoint(operation = "新增", exceptionMessage = "操作失败") |
| | | public FebsResponse add(@RequestBody @Valid AiProduct dto) { |
| | | |
| | | String companyId = getCurrentUserCompanyId(); |
| | | dto.setCompanyId(companyId); |
| | | return aiProductService.add(dto); |
| | | } |
| | | |
| | |
| | | |
| | | return aiProductService.productRoleSet(dto); |
| | | } |
| | | |
| | | |
| | | @PostMapping("productQuestionSet") |
| | | @ControllerEndpoint(operation = "AI题目配置", exceptionMessage = "操作失败") |
| | | public FebsResponse productQuestionSet(@RequestBody @Valid AdminMoveChooseInfoDto dto) { |
| | | |
| | | return aiProductService.productQuestionSet(dto); |
| | | } |
| | | } |