Skip to content
On this page

11.2 查询工单会话列表

接口说明:

MethodURLContentType
GET/api/v1/chat/listapplication/json

请求参数说明:

字段名类型是否必填示例值描述
questionIdInteger11工单ID

请求示例:

GET /api/v1/chat/list?questionId=11

返回参数说明:

参数类型描述
idInteger会话ID
questionIdInteger工单ID
noInteger序号
roleTypeString角色类型
roleIdString角色ID
roleNameString角色名称
contentString会话内容
filesString附件URL列表
createTimeDateTime创建时间

响应示例:

json
{
  "success": true,
  "code": "000",
  "message": "成功",
  "data": [
    {
      "id": 17,
      "questionId": 11,
      "no": 1,
      "roleType": "questioner",
      "roleId": "72",
      "roleName": "BBB",
      "content": "商品缺少配件",
      "files": "http://example.com/img1.jpg,http://example.com/img2.jpg",
      "createTime": "2025-08-12 13:43:14"
    },
    {
      "id": 18,
      "questionId": 11,
      "no": 2,
      "roleType": "questioner",
      "roleId": "72",
      "roleName": "BBB",
      "content": "发起提问",
      "files": "https://example.com/123.jpg",
      "createTime": "2025-08-12 15:14:01"
    }
  ]
}