帮我吧文档:数据接口:工单:工单回复

获取工单回复列表

请求参数

名称 只读 类型 说明
ticketId int 回复所对应的工单id
sort_order vachar 按回复时间排序,排序规则:asc-升序,desc-降序。默认升序。

请求地址

GET /api/v1/tickets/{ticket_id}/ticketReplys.json

调用示例

curl https://www.bangwo8.com/api/v1/tickets/{ticket_id}/ticketReplys.json \
-H "Content-Type: application/json" -v -u {account}:{password}

返回参数

名称 类型 只读 注释
ticketReplyId int 回复id,系统自动分配
replyUserId int 回复人的id,系统自动分配
ticketId int 回复所对应的工单id,系统自动分配
replyType tinyint 回复类型:1-公开回复,2-内部注释
replyDT datetime 回复时间,格式:2017-8-17 10:20:13
replyStatus tinyint 工单状态:1–新建,2–已开启,3–待回应,4–已解决,5–自动关闭,6–手动关闭
replyMsg varchar 回复的文本内容
ticketnode varchar 节点内容
attachments array 回复所带的附件,请参照工单附件

返回示例

Status: 200 OK
{
  "ticketReplys": [
    {
    "ticketReplyId": 3245,
    "replyUserId": 234,
        "ticketId": 23545,
    "replyType": "1",
    "replyDT": 2017-8-17 10:20:13,
    "replyStatus": "2",
    "replyMsg": "这里是回复的文本内容",
    "ticketnode": {
                "columnTitle": "下拉仅供我field_1*",
                "value": "下拉2ABC"
            },
    "attachments": [
            {
                   "attachId": 213,
                   "fileName": "phone.png",
                   "filePath": "https://bangwo8.oss-cn-shenzhen.aliyuncs.com/18/Z28tfzPdB.png",
                   "token": "w23e687e45634c2341af75c6fd2654e"
                },
                {
                   "attachId": 213,
                   "fileName": "phone.png",
                   "filePath": "https://bangwo8.oss-cn-shenzhen.aliyuncs.com/18/Z28tfzPdB.png",
                   "token": "w23e687e45634c2341af75c6fd2654e"
                }
    ]
     },
    {
    "ticketReplyId": 4355,
    "replyUserId": 234,
        "ticketId": 46545,
    "replyType": "2",
    "replyDT": 2017-9-17 10:20:13,
    "replyStatus": "2",
    "replyMsg": "这里是回复的文本内容",
    "ticketnode": {
                "columnTitle": "下拉仅供我field_1*",
                "value": "下拉2ABC"
            },
    "attachments": [
        ]
    }

页面工具