|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.supervision.manage.controller.qaKnowledge;
|
|
|
|
|
|
|
|
|
|
import com.supervision.dto.QaKnowledgeDTO;
|
|
|
|
|
import com.supervision.manage.service.QaKnowledgeManageService;
|
|
|
|
|
import com.supervision.service.AskTemplateQuestionLibraryService;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
@ -17,9 +18,17 @@ public class QaKnowledgeManageController {
|
|
|
|
|
|
|
|
|
|
private final AskTemplateQuestionLibraryService askTemplateQuestionLibraryService;
|
|
|
|
|
|
|
|
|
|
private final QaKnowledgeManageService qaKnowledgeManageService;
|
|
|
|
|
|
|
|
|
|
@ApiOperation("获取问答知识库")
|
|
|
|
|
@GetMapping("queryQaKnowledge")
|
|
|
|
|
public List<QaKnowledgeDTO> queryQaKnowledge() {
|
|
|
|
|
return askTemplateQuestionLibraryService.queryQaKnowledge();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("手动刷新知识库")
|
|
|
|
|
@GetMapping("refreshQaKnowledge")
|
|
|
|
|
public void refreshQaKnowledge() {
|
|
|
|
|
qaKnowledgeManageService.refreshQaKnowledge();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|