AI智能机器人
  1. IM用户消息管理
AI智能机器人
  • websocket
    • 用户绑定
    • 用户提问
    • 客服坐席绑定
    • 客服坐席消息
    • 发起留言工单
  • IM客服会话管理
    • 会话列表
      GET
  • IM在线用户管理
    • 在线用户列表
      GET
  • 用户会话记录管理
    • 分页查询询会话记录列表
      GET
    • 查看会话记录
      GET
    • 删除会话记录
      POST
    • 导出会话记录
      POST
  • IM用户消息管理
    • 获取离线消息
      GET
    • 统计离线消息情况
      GET
    • 分页获取用户历史聊天记录
      POST
    • 分页获取robot历史聊天记录
      POST
    • 通过留言工单获取历史聊天记录list
      POST
  • IM用户登录
    • 登录
      POST
    • 查看IM连接情况
      GET
  • 首页Controller
    • 解决问题情况
      GET
    • 今日工单
      GET
    • 待办消息
      GET
    • 机器人状态
      GET
    • 服务评价统计
      POST
    • 服务评价分页列表数据
      POST
    • 服务评价分页列表数据导出
      POST
  • 工单Controller
    • 分页查询询工单列表
    • 获取工单详细信息
    • 新增工单
    • 派单
    • 删除工单
    • 分页查询登录人工单列表
    • 去回复
    • 完成工单
    • 钉钉查询客服发起工单列表
  1. IM用户消息管理

通过留言工单获取历史聊天记录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 
可选
0-普通分页查询 1-定位记录分页查询
分页类型
queryMode
integer  | null 
可选
查询模型:1-向上更多 2-向下更更多
查询模型
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
上一页
分页获取robot历史聊天记录
下一页
登录
Built with