Authored by tanling

Update 社区首页相关接口.md

... ... @@ -134,4 +134,236 @@ code为200即为成功,否则是失败。
```
## 2、社区首页最热帖子列表##
社区首页最热帖子列表(method=app.social.getHomePagePostList)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|client_secret|string|50|否|5ac68f20cb18efe154be||进入接口提供的参数加密信息|
|app_version|float|10|否|1||APP版本|
|os_version|string|20|否|Android4.4||系统版本+机器型号|
|client_type|string|20|否|iphone/android/ipad||手机型号(不区分大小写)|
|screen_size|string|20|否|800x900||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|authorId|String|否|32423|0|作者id|
|page|int|是|1|1|页码|
|limit|int|是|5|10|每页多少条|
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8080/gateway/?method=app.social.getHomePagePostList&authorId=2222222&page=1&limit=2&debug=XYZ
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"list": [
{
"isIndexTop": 1,
"blocks": [
{
"contentData": "啊啊啊啊啊啊SDDDDDDDD啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊哈哈哈",
"templateKey": "text",
"order": 1
},
{
"contentData": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png",
"templateKey": "image",
"order": 2
},
{
"contentData": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d5.png",
"templateKey": "image",
"order": 3
}
],
"updateTime": 0,
"praise": 0,
"revieweTime": 0,
"isForumTop": 1,
"createTime": 1467116718,
"forumCode": 10004,
"comment": 1,
"id": 78,
"revieweState": 0,
"isHot": 1,
"browse": 0,
"status": 0
},
{
"isIndexTop": 0,
"blocks": [
{
"contentData": "啊啊啊啊啊啊SDDDDDDDD啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊哈哈哈",
"templateKey": "text",
"order": 1
},
{
"contentData": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png",
"templateKey": "image",
"order": 2
},
{
"contentData": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d5.png",
"templateKey": "image",
"order": 3
}
],
"updateTime": 0,
"praise": 0,
"revieweTime": 0,
"isForumTop": 0,
"createTime": 1467116713,
"forumCode": 10004,
"comment": 1,
"id": 76,
"revieweState": 0,
"isHot": 1,
"browse": 0,
"status": 0
},
{
"isIndexTop": 0,
"blocks": [
{
"contentData": "啊啊啊啊啊啊SDDDDDDDD啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊哈哈哈",
"templateKey": "text",
"order": 1
},
{
"contentData": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png",
"templateKey": "image",
"order": 2
},
{
"contentData": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d5.png",
"templateKey": "image",
"order": 3
}
],
"updateTime": 0,
"praise": 0,
"revieweTime": 0,
"isForumTop": 0,
"createTime": 1467116660,
"forumCode": 10004,
"comment": 1,
"id": 74,
"revieweState": 0,
"isHot": 1,
"browse": 0,
"status": 0
},
{
"isIndexTop": 0,
"blocks": [
{
"contentData": "啊啊啊啊啊啊SDDDDDDDD啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊哈哈哈",
"templateKey": "text",
"order": 1
},
{
"contentData": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png",
"templateKey": "image",
"order": 2
},
{
"contentData": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d5.png",
"templateKey": "image",
"order": 3
}
],
"updateTime": 0,
"praise": 0,
"revieweTime": 0,
"isForumTop": 0,
"createTime": 1467116650,
"forumCode": 10004,
"comment": 1,
"id": 72,
"revieweState": 0,
"isHot": 1,
"browse": 0,
"status": 0
},
{
"isIndexTop": 0,
"blocks": [
{
"contentData": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png",
"templateKey": "image",
"order": 1
},
{
"contentData": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d5.png",
"templateKey": "image",
"order": 2
}
],
"updateTime": 0,
"praise": 0,
"revieweTime": 0,
"isForumTop": 0,
"createTime": 1467116556,
"forumCode": 10004,
"comment": 1,
"id": 70,
"revieweState": 0,
"isHot": 1,
"browse": 0,
"status": 0
},
{
"isIndexTop": 1,
"blocks": [
{
"contentData": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png",
"templateKey": "image",
"order": 1
},
{
"contentData": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d5.png",
"templateKey": "image",
"order": 2
}
],
"updateTime": 0,
"praise": 0,
"revieweTime": 0,
"isForumTop": 0,
"createTime": 1467116548,
"forumCode": 10001,
"comment": 0,
"id": 68,
"revieweState": 0,
"isHot": 0,
"browse": 0,
"status": 0
}
],
"page": 1,
"pageSize": 10,
"page_total": 1,
"total": 6
},
"md5": "915fceb9999f3206b202dbc2eae96f78",
"message": "社区最热帖子列表"
}
```
```json
{
"message": "用户ID不能为空",
"code": 401
}
```
... ...