|
@@ -96,8 +96,7 @@ public class KgController extends BaseController {
|
|
|
|
|
|
@GetMapping("/question")
|
|
@GetMapping("/question")
|
|
public AjaxResult question(@RequestParam("text") String question) {
|
|
public AjaxResult question(@RequestParam("text") String question) {
|
|
-// String result = kgService.question(question);
|
|
|
|
- String result = "question\n123\n456\n789";
|
|
|
|
|
|
+ String result = kgService.question(question);
|
|
QuestionRecord questionRecord = new QuestionRecord();
|
|
QuestionRecord questionRecord = new QuestionRecord();
|
|
questionRecord.setQuestion(question);
|
|
questionRecord.setQuestion(question);
|
|
questionRecord.setResult(result);
|
|
questionRecord.setResult(result);
|