API 调用地址
{域名地址}/api/communication/messages
说明:{域名地址} 需要替换成你的域名地址,如 https://www.anqicms.com/api/communication/messages
调用方法
GET
请求参数
| 字段名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| comm_order_id | int | 是 | 沟通订单ID |
| current | int | 否 | 获取指定分页数据,当前页码 |
| pageSize | int | 否 | 显示数量,每页数量 |
返回参数
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | int | 错误码 |
| msg | string | 错误原因说明 |
| data | object[] | 结果内容 |
data 结果 item 参数
| 字段名 | 类型 | 说明 |
|---|---|---|
| id | int | 沟通记录ID |
| comm_order_id | int | 沟通订单ID |
| sender_id | int | 发送者ID |
| sender_type | string | 发送者类型,user or admin or system |
| sender_name | string | 发送者名称 |
| message_type | string | 沟通记录类型,ttext |
| content | string | 沟通记录内容 |
错误代码
| 错误码 | 说明 |
|---|---|
| 0 | OK |
| -1 | 错误,错误原因在 msg 中指出 |
| 1001 | 未登录 |
| 1002 | 未授权 |
| 200 | API 请求 OK |