===== 获取工单回复列表 ===== ==== 请求参数 ==== ^名称 ^只读 ^类型 ^说明 ^ |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 |否 |回复的文本内容 | |attachments |array |否 |回复所带的附件,请参照[[http://doc.bangwo8.com:9000/doku.php?id=%E5%B8%AE%E6%88%91%E5%90%A7%E6%96%87%E6%A1%A3:%E6%95%B0%E6%8D%AE%E6%8E%A5%E5%8F%A3:%E5%B7%A5%E5%8D%95:%E5%B7%A5%E5%8D%95%E9%99%84%E4%BB%B6|工单附件]] | ==== 返回示例 ==== Status: 200 OK { "ticketReplys": [ { "ticketReplyId": 3245, "replyUserId": 234, "ticketId": 23545, "replyType": "1", "replyDT": 2017-8-17 10:20:13, "replyStatus": "2", "replyMsg": "这里是回复的文本内容", "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": "这里是回复的文本内容", "attachments": [ ] }