- websocket
- IM客服会话管理
- IM在线用户管理
- 用户会话记录管理
- IM用户消息管理
- IM用户登录
- 首页Controller
- 工单Controller
通过留言工单获取历史聊天记录list
POST
/ai/im/user/findHistoryMsgByOrder
请求参数
Header 参数
Authorization
string
可选
默认值:
{{Authorization}}
Body 参数application/json
id
string | null
id
targetId
string | null
会话id
workOrderId
integer | null
工单id
userId
string | null
用户id
isread
integer | null
已读未读
type
integer | null
消息来源
msgType
integer | null
消息类型
startDate
string | null
开始时间
endDate
string | null
结束时间
createTime
string | null
创建时间
flag
integer | null
可选
分页类型
queryMode
integer | null
可选
查询模型
sourceId
string | null
当前目标数据id
示例
{
"id": "string",
"targetId": "string",
"workOrderId": 0,
"userId": "string",
"isread": 0,
"type": 0,
"msgType": 0,
"startDate": "string",
"endDate": "string",
"createTime": "string",
"flag": 0,
"queryMode": 0,
"sourceId": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8082/robot/ai/im/user/findHistoryMsgByOrder' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "string",
"targetId": "string",
"workOrderId": 0,
"userId": "string",
"isread": 0,
"type": 0,
"msgType": 0,
"startDate": "string",
"endDate": "string",
"createTime": "string",
"flag": 0,
"queryMode": 0,
"sourceId": "string"
}'
返回响应
🟢200成功
application/json
Body
java.util.List<com.robot.im.domain.message.entity.ImUserMessage>
key
object | null
可选
示例
{
"": {}
}
修改于 2023-12-11 02:27:40