~~~[api]
post:/interflow_comment/create
int:pid=0#父级评论ID,默认0
*string:content= #评论内容
*int:interflow_id= # 帖子ID
<<<
success
{
"content": "1",
"interflow_id": "1",
"uid": 5,
"updated_at": "2021-03-31 21:23:14",
"created_at": "2021-03-31 21:23:14",
"id": 5
}
<<<
error
{
"error": "父评论不存在",
"code": "PID_IS_NULL"
}
--
Else
--
{
"error": "帖子不存在",
"code": "INTERFLOW_IS_NULL"
}
--
Else
--
{
"error": "评论失败",
"code": "COMMENT_FAIL"
}
~~~