开发者可以将计划相关参数组装为JSON类型,来创建计划回复信息。
接口请求说明:
http请求方式:POST http://ip:port/seeyon/rest/plan/reply
创建数据示例:
| 参数 | 是否必须 | 说明 |
| Long createId | 是 | 回复人ID |
| Date createDate | 是 | 回复时间 |
| String path | 是 | 设置当前用户访问来源设备 如:String path="pc" |
| String showToId | 是 | 隐藏时公开者ID 如:String showToId=null |
| Boolean hidden | 是 | 是否隐藏,0否;1是 如:Boolean hidden=false |
| Integer forwardCount | 是 | 转发次数 |
| Integer ctype | 是 | 类型:-2为草稿;-1为发起人附言;0为评论;1为回复,计划回复应该是0 |
| Integer moduleType | 是 | 回复类型 应该是5。 |
| Long moduleId | 是 | 计划ID |
| String content | 是 | 回复内容 |
| Long pid | 是 | 计划ID,初次回复应该为0,如:Long pid=0L |
| Integer clevel | 是 | 当前节点层级,顶级为1, 如:Integer clevel=1 |
返回说明:
如果没有找到对应的计划ID则返回delete;
如果计划已经总结over;
正常情况下,创建成功会返回创建的回复JSON信息,如下;
{
"parent": null,
"id": "-4534056719296542144",
"path": "pc",
"hidden": false,
"content": "回复内容",
"children": [ ],
"moduleType": 5,
"title": null,
"createDate": "2014-06-06 17:13",
"moduleId": "1378328433440933803",
"showToId": null,
"extAtt1": null,
"extAtt2": null,
"pid": "0",
"createId": "-2295828016161864209",
"modifyDate": null,
"ctype": 0,
"extAtt3": null,
"clevel": 1,
"relateInfo": null,
"forwardCount": 0,
"affairId": null,
"escapedContent": "回复内容",
"canView": true,
"m1Info": "",
"maxChildPath": 1,
"childrenCount": 0,
"createDateStr": "2014-06-06 17:13",
"createName": "创建者名称",
"attachList": [ ],
"hasRelateAttach": false,
"hasRelateDocument": false,
"pushMessageToMembersList": [ ],
"pushMessage": null,
"pushMessageToMembers": null
}

