多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**1.接口地址**:http://api.zishahui.vip/user/community **2.支持格式**:json **3.请求方式**:post **4.请求参数**: | 参数 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | user_id |是 | int | 用户ID| | page |否 | int | 页码| | limit |否 | int | 获取多少条| ***5.返回字段说明*** |名称|类型|说明| |---|:---:|--:|--:| |code|int|返回码| |msg|string|返回提示信息| |data|string|返回数据| |名称|类型|说明| |---|:---:|--:|--:| |id|int|消息ID| |reply_id|int|回复的当前楼层评论ID| |send_uid|int|评论人ID| |received_uid|int|被评论用户ID| |message|string|评论内容| |type|int|1关注,2用户资源,3问答(先判断type)| |resources_type|int|1动态,2文章,3视频,4资讯| |status|int|0未读,1已读| |resource_status|int|-2,(该资源被删除了)-1该评论被删除了(被动删除),1正常| |title|string|资源的标题| |content|string|资源内容| |images|string|资源图片| |create_time|string|创建时间| *******成功示列******* { "code": 1, "msg": "返回成功!", "data": { "data": [ { "id": "15", "comment_id": "2", "reply_id": "2", "send_uid": "59", "received_uid": "8", "message": "上一次是因酒店订单错误,马蜂窝客服建议用户从俄罗", "resource_id": "9223", "resource_status": "1", "type": "2", "status": "1", "create_time": 1540349836, "update_time": null, "title": null, "content": "🤔🤔🤔天气不错,适合加班!🙃🙃🙃", "images": [ "https://zishacloud.oss-cn-hangzhou.aliyuncs.com/pic/App/unknow/20181012/77c33e76b35ffedca28c85890078c423.jpg", "https://zishacloud.oss-cn-hangzhou.aliyuncs.com/pic/App/unknow/20181012/9157150243d9ff844e69536a8ce568dc.jpg", "https://zishacloud.oss-cn-hangzhou.aliyuncs.com/pic/App/unknow/20181012/011fcfdfe9fed02904621882d3f9090c.png" ], "resources_type": "1", "nick_name": "YizhiHu", "icon_path": "https://zishacloud.oss-cn-hangzhou.aliyuncs.com/pic/App/unknow/20181012/bb0432cb6b1ecbed43e4e1429082ee1b.jpg", "role": "1", "author_image": "https://api.zishahui.vip/upload/userHead/8/69218ce43ce2d846676c081e13956980.png" }, { "id": "13", "comment_id": null, "reply_id": null, "send_uid": "178", "received_uid": "8", "message": null, "resource_id": "0", "resource_status": "1", "type": "1", "status": "1", "create_time": 1540349300, "update_time": null, "title": null, "content": null, "images": [], "resources_type": null, "nick_name": "雨+田=雷", "icon_path": "https://zishacloud.oss-cn-hangzhou.aliyuncs.com/pic/App/unknow/20181010/4fa0731729d6d072f08383e435aa0aeb.jpg", "role": "1", "author_image": null } { "id": "11", "comment_id": "17", "reply_id": null, "send_uid": "59", "received_uid": "8", "message": "上一次是因酒店订单错误,马蜂窝客服建议用户从俄罗斯打车去希腊,最终以赔偿8万元打车费并公开道歉告终。而这次,被自媒体指责2100万条点评中85%涉嫌造假,舆论风波中,马蜂窝这次选择了起诉该作者。", "resource_id": "3", "resource_status": "1", "type": "3", "status": "1", "create_time": 1540347504, "update_time": null, "title": "这是我刚刚两个亿入手的紫砂壶,怎么保养啊!", "images": [], "nick_name": "YizhiHu", "icon_path": "https://zishacloud.oss-cn-hangzhou.aliyuncs.com/pic/App/unknow/20181012/bb0432cb6b1ecbed43e4e1429082ee1b.jpg", "role": "1", "author_image": "https://api.zishahui.vip/upload/userHead/8/69218ce43ce2d846676c081e13956980.png" } ], "has_next": false } } *******失败******* { "code": -1, "msg": "缺少参数!", "data": [] }