跨域搜索

This commit is contained in:
XaoLi717 2024-08-19 15:07:22 +08:00
parent 3966773736
commit b9503de295

View File

@ -110,6 +110,7 @@ public class KnowledgeController {
@GetMapping("/listForEs") @GetMapping("/listForEs")
@Operation(summary = "获得查询分页") @Operation(summary = "获得查询分页")
public CommonResult<List<KnowledgeRespVO>> getKnowsList(@Valid KmsSearchDto kmsSearchDto) { public CommonResult<List<KnowledgeRespVO>> getKnowsList(@Valid KmsSearchDto kmsSearchDto) {
System.out.println("kmsSearchDto: " + kmsSearchDto);
//PageResult<KnowledgeDO> pageResult = knowledgeService.getKnowledgePage(pageReqVO); //PageResult<KnowledgeDO> pageResult = knowledgeService.getKnowledgePage(pageReqVO);
List<KnowledgeDO> list = knowledgeService.getKnowsList(kmsSearchDto); List<KnowledgeDO> list = knowledgeService.getKnowsList(kmsSearchDto);
return success(BeanUtils.toBean(list, KnowledgeRespVO.class)); return success(BeanUtils.toBean(list, KnowledgeRespVO.class));