#邻里圈最新
+++
get:{url}index.php/Home/Post/newPostList
<<<
success
{
"code" : 200,
"msg" : "success",
"data": [
{
"id":"46",
"nickname":"loveling",
"title":"上班拼车2",
"images":"post/E25615EC-38BF-7012-1B82-51C0509DCC31.jpg",
"create_time":"1476157983"
},
{
"id":"43",
"nickname":"loveling",
"title":"上班拼车",
"images":"post/DA217213-A83E-A4F1-B377-F54B07BD527D.jpg",
"create_time":"1473668074"
}
]
}
<<<
error
{
"code" : 500,
"msg" : 错误返回信息
}
+++
#帖子详情
+++
get:{url}index.php/Home/Post/itemPost?id=35
*id#帖子id
<<<
success
{
{
"code": "200",
"msg": "SUCCESS",
"data": {
"id": "35", 帖子id
"portrait": "http://sjkj.app.com/public/upload/post/47BD86EF-776E-C0D3-BA34-1A25A1453EE2.jpg", 头像
"nickname": "loveling", 昵称
"address": "番禺大石", 地址/小区名称
"village_id": null, 小区id
"title": "三亚三日游", 标题
"comment_num": "3", 评论数
"images": [
"http://sjkj.app.com/public/upload/post/47BD86EF-776E-C0D3-BA34-1A25A1453EE2.jpg"
], 帖子图片
"content": "蜈支洲岛真的很好看,有机会可以去看看", 内容
"like_num": "2", 点赞人数
"like_user_id": "7,13", 点赞人Id
"is_address": "0", 是否显示地址 0 显示 1 不显示
"is_anonymous": "0", 是否匿名(0:公开 , 1:匿名)
"models":null, 车型 空格 车牌号
"start_travel_route":null, 出行路线(始)
"end_travel_route":null, 出行路线(终)
"car_travel_time":null, 拼车的出行时间 周一,周二
"travel_time":null, 出行时间/集合时间
"num":null, 数量
"location":null, 上车位置/集合位置
"price":null, 价格/价格范围
"mobile":null, 联系电话
"activity_time":null, 活动时间
"remarks":null, 备注
"promotee":null, 举办方
"create_time":"1473650517",
"like_portrait": [
"http://sjkj.app.com/public/upload/post/47BD86EF-776E-C0D3-BA34-1A25A1453EE2.jpg",
"http://sjkj.app.com/public/upload/post/47BD86EF-776E-C0D3-BA34-1A25A1453EE2.jpg"
], 点赞人的头像
"comment": [ 评论
{
"nickname": "loveli", 评论人宁城
"portrait": null, 评论人头像
"sex": null, 评论人性别 1 男 2 :女
"id": "4", 评论id
"user_id": "18", 评论人Id
"is_anonymous": "0", 0:公开 , 1:匿名)
"content": "算上我一个", 评论内容
"create_time": "1473671574", 评论时间
"reply": [ 回复
{
"id": "5", 回复id
"from_user_id": "13", 回复人id
"from_user": "loveling", 回复人昵称
"from_is_anonymous": "0", 0:公开 , 1:匿名)
"to_user_id": "18", 被回复人id
"to_user": "loveli", 被回复人昵称
"to_is_anonymous": "0", 0:公开 , 1:匿名)
"content": "好的,算你一个" 回复内容
},
{
"id": "6", 回复id
"from_user_id": "18", 回复人id
"from_user": "loveli", 回复人昵称
"from_is_anonymous": "0", 0:公开 , 1:匿名)
"to_user_id": "13", 被回复人id
"to_user": "loveling", 被回复人昵称
"to_is_anonymous": "0", 0:公开 , 1:匿名)
"content": "谢了" 回复内容
}
]
}
]
}
}
<<<
error
{
"code" : 500,
"msg" : 错误返回信息
}
+++