...
|
...
|
@@ -270,3 +270,105 @@ code为200即为成功,否则是失败。 |
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
## 4、社区首页最热帖子列表##
|
|
|
|
|
|
社区首页最热帖子列表(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://172.16.8.136: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": 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,
|
|
|
"forumName": "模块",
|
|
|
"createTime": 1467116319,
|
|
|
"forumCode": 10002,
|
|
|
"comment": 1,
|
|
|
"id": 64,
|
|
|
"revieweState": 0,
|
|
|
"isHot": 0,
|
|
|
"browse": 0,
|
|
|
"status": 0
|
|
|
},
|
|
|
{
|
|
|
"isIndexTop": 0,
|
|
|
"blocks": [
|
|
|
{
|
|
|
"contentData": "啊啊啊啊啊啊啊啊啊啊啊",
|
|
|
"templateKey": "text",
|
|
|
"order": 1
|
|
|
}
|
|
|
],
|
|
|
"updateTime": 0,
|
|
|
"praise": 0,
|
|
|
"revieweTime": 0,
|
|
|
"isForumTop": 1,
|
|
|
"forumName": "模块",
|
|
|
"createTime": 1467116307,
|
|
|
"forumCode": 10002,
|
|
|
"comment": 1,
|
|
|
"id": 62,
|
|
|
"revieweState": 0,
|
|
|
"isHot": 0,
|
|
|
"browse": 0,
|
|
|
"status": 0
|
|
|
}
|
|
|
],
|
|
|
"page": 1,
|
|
|
"pageSize": 2,
|
|
|
"page_total": 2,
|
|
|
"total": 3
|
|
|
},
|
|
|
"md5": "bb4cf190f2bfdbb32c61fba3ea6c2597",
|
|
|
"message": "我的帖子"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"message": "用户ID不能为空",
|
|
|
"code": 401
|
|
|
}
|
|
|
```
|
|
|
|
...
|
...
|
|