|
@@ -3,6 +3,7 @@ package com.slibra.web.controller.business;
|
|
|
import com.alibaba.fastjson2.JSON;
|
|
|
import com.alibaba.fastjson2.JSONWriter;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
+import com.slibra.business.req.AiChatReq;
|
|
|
import com.slibra.business.req.AiChatRes;
|
|
|
import com.slibra.business.req.ChatReq;
|
|
|
import com.slibra.business.req.WorkOrderReq;
|
|
@@ -58,10 +59,14 @@ public class FrontController extends BaseController {
|
|
|
return AjaxResult.success("success");
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- //todo 后面换成post
|
|
|
- @GetMapping("/queryBusinessInfo")
|
|
|
- public AiChatRes queryBusinessInfo(){
|
|
|
+ /**
|
|
|
+ *AI语音客服大模型请求接口
|
|
|
+ * @param aiChatReq
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/queryBusinessInfo")
|
|
|
+ public AiChatRes queryBusinessInfo(@RequestBody AiChatReq aiChatReq){
|
|
|
+ log.info("进入了 AI语音客服大模型请求 接口,请求参数为{}", JSON.toJSONString(aiChatReq));
|
|
|
AiChatRes aiChatRes = AiChatRes.builder().build();
|
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
|
map.put("contents", Arrays.asList("1", "2", "3", "4", "5", "6", "7", "8", "9"));
|