|
@@ -135,15 +135,17 @@ public class LawyerAiInteractionLogController {
|
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "queryText", value = "用户发送的消息内容", dataType = "String", paramType = "query", required = true),
|
|
@ApiImplicitParam(name = "queryText", value = "用户发送的消息内容", dataType = "String", paramType = "query", required = true),
|
|
|
@ApiImplicitParam(name = "responseText", value = "AI回复内容", dataType = "String", paramType = "query", required = true),
|
|
@ApiImplicitParam(name = "responseText", value = "AI回复内容", dataType = "String", paramType = "query", required = true),
|
|
|
- @ApiImplicitParam(name = "clientUserId", value = "客户端用户ID", dataType = "Integer", paramType = "query", required = true)
|
|
|
|
|
|
|
+ @ApiImplicitParam(name = "clientUserId", value = "客户端用户ID", dataType = "Integer", paramType = "query", required = true),
|
|
|
|
|
+ @ApiImplicitParam(name = "sceneId", value = "场景ID", dataType = "Integer", paramType = "query")
|
|
|
})
|
|
})
|
|
|
@PostMapping("/saveChatLog")
|
|
@PostMapping("/saveChatLog")
|
|
|
public R<Map<String, Object>> saveChatLog(
|
|
public R<Map<String, Object>> saveChatLog(
|
|
|
@RequestParam String queryText,
|
|
@RequestParam String queryText,
|
|
|
@RequestParam String responseText,
|
|
@RequestParam String responseText,
|
|
|
- @RequestParam Integer clientUserId) {
|
|
|
|
|
- log.info("LawyerAiInteractionLogController.sendAIMessage?message={},responseText={},clientUserId={}", queryText, responseText, clientUserId);
|
|
|
|
|
- return aiInteractionLogService.saveChatLog(queryText, responseText, clientUserId);
|
|
|
|
|
|
|
+ @RequestParam Integer clientUserId,
|
|
|
|
|
+ @RequestParam Integer sceneId) {
|
|
|
|
|
+ log.info("LawyerAiInteractionLogController.sendAIMessage?queryText={},responseText={},clientUserId={},sceneId{}", queryText, responseText, clientUserId, sceneId);
|
|
|
|
|
+ return aiInteractionLogService.saveChatLog(queryText, responseText, clientUserId, sceneId);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation("删除聊天记录")
|
|
@ApiOperation("删除聊天记录")
|