Appearance
11.2 查询工单会话列表
接口说明:
Method | URL | ContentType |
---|---|---|
GET | /api/v1/chat/list | application/json |
请求参数说明:
字段名 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
questionId | Integer | 是 | 11 | 工单ID |
请求示例:
GET /api/v1/chat/list?questionId=11
返回参数说明:
参数 | 类型 | 描述 |
---|---|---|
id | Integer | 会话ID |
questionId | Integer | 工单ID |
no | Integer | 序号 |
roleType | String | 角色类型 |
roleId | String | 角色ID |
roleName | String | 角色名称 |
content | String | 会话内容 |
files | String | 附件URL列表 |
createTime | DateTime | 创建时间 |
响应示例:
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"
}
]
}