Authored by tanling

Update 社区首页相关接口.md

... ... @@ -11,14 +11,15 @@
|screen_size|string|20|否|800x900||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|appType|String|是|1||1:有货APP,2:YOHO!|
|clientType|String|是|H5||客户端类型|
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8080/gateway?method=app.social.getForumCarouselInfo
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
... ... @@ -26,121 +27,112 @@ code为200即为成功,否则是失败。
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"forumName": "永恒的潮流",
"forumDesc": "",
"orderBy": 0,
"praiseNum": 10,
"newPost": {
"postsTitle": "解决了",
"contentData": "兔子窝",
"hasImgFlg": "N",
"postId": 84,
"user": {
"headIcon": "http://img10.static.yhbimg.com/yhb-img01/2016/06/28/17/01b4ab5ad41e5b2d1106915828f41c4bc6.jpg",
"uid": 8050826,
"name": "叶子"
}
},
"forumCode": 10001,
"oneDayAddNum": 0,
"commentsNum": 1,
"forumPic": "",
"postsNum": 2
},
{
"forumName": "复古市集会",
"forumDesc": "",
"orderBy": 0,
"praiseNum": 8,
"newPost": {
"postsTitle": "",
"contentData": "啊啊啊啊啊啊SDDDDDDDD啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊哈哈哈哈哈哈哈哈啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊",
"hasImgFlg": "N",
"postId": 62,
"user": {
"headIcon": "http://img10.static.yhbimg.com/yhb-img01/2016/06/28/17/01b4ab5ad41e5b2d1106915828f41c4bc6.jpg",
"uid": 2222222,
"signature": "你若安你若安好,便是晴天===============",
"name": "MayDay_1988"
}
"data": {
"forumInfo": [
{
"commentsNum": 1,
"forumCode": 10001,
"forumDesc": "",
"forumName": "复古市集会",
"forumPic": "",
"newPost": {
"contentData": "兔子窝",
"hasImgFlg": "N",
"postId": 84,
"postsTitle": "解决了",
"user": {
"headIcon": "http://img10.static.yhbimg.com/yhb-img01/2016/06/28/17/01b4ab5ad41e5b2d1106915828f41c4bc6.jpg",
"name": "叶子",
"uid": 8050826
}
},
"oneDayAddNum": 0,
"orderBy": 0,
"postsNum": 2,
"praiseNum": 9
},
"forumCode": 10002,
"oneDayAddNum": 0,
"commentsNum": 6,
"forumPic": "",
"postsNum": 3
},
{
"forumName": "SNEAKER",
"forumDesc": "",
"orderBy": 0,
"praiseNum": 1,
"forumCode": 10003,
"oneDayAddNum": 0,
"commentsNum": 0,
"forumPic": "",
"postsNum": 0
},
{
"forumName": "YOHO",
"forumDesc": "",
"hotPost": {
"postsTitle": "",
"contentData": "啊啊啊啊啊啊SDDDDDDDD啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊哈哈哈",
"hasImgFlg": "Y",
"postId": 72
{
"commentsNum": 6,
"forumCode": 10002,
"forumDesc": "",
"forumName": "SNEAKER",
"forumPic": "",
"newPost": {
"contentData": "啊啊啊啊啊啊SDDDDDDDD啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊哈哈哈哈哈哈哈哈啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊",
"hasImgFlg": "N",
"postId": 62,
"postsTitle": "",
"user": {
"headIcon": "http://img10.static.yhbimg.com/yhb-img01/2016/06/28/17/01b4ab5ad41e5b2d1106915828f41c4bc6.jpg",
"name": "叶子",
"uid": 8050826
}
},
"oneDayAddNum": 0,
"orderBy": 0,
"postsNum": 3,
"praiseNum": 8
},
"orderBy": 0,
"praiseNum": 0,
"newPost": {
"postsTitle": "",
"contentData": "啊啊啊啊啊啊SDDDDDDDD啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊哈哈哈",
"hasImgFlg": "Y",
"postId": 78
{
"commentsNum": 0,
"forumCode": 10003,
"forumDesc": "",
"forumName": "YOHO",
"forumPic": "",
"oneDayAddNum": 0,
"orderBy": 0,
"postsNum": 0,
"praiseNum": 1
},
"forumCode": 10004,
"oneDayAddNum": 0,
"commentsNum": 4,
"forumPic": "",
"postsNum": 5
},
{
"forumName": "YOHOBUY",
"forumDesc": "",
"orderBy": 0,
"praiseNum": 0,
"forumCode": 10005,
"oneDayAddNum": 0,
"commentsNum": 0,
"forumPic": "",
"postsNum": 0
},
{
"forumName": "MARS",
"forumDesc": "",
"orderBy": 0,
"praiseNum": 0,
"forumCode": 10006,
"oneDayAddNum": 0,
"commentsNum": 0,
"forumPic": "",
"postsNum": 0
},
{
"forumName": "SHOW",
"forumDesc": "",
"orderBy": 0,
"praiseNum": 0,
"forumCode": 10007,
"oneDayAddNum": 0,
"commentsNum": 0,
"forumPic": "",
"postsNum": 0
{
"commentsNum": 4,
"forumCode": 10004,
"forumDesc": "",
"forumName": "SHOW",
"forumPic": "",
"hotPost": {
"contentData": "啊啊啊啊啊啊SDDDDDDDD啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊哈哈哈",
"hasImgFlg": "Y",
"postId": 72,
"postsTitle": ""
},
"newPost": {
"contentData": "啊啊啊啊啊啊SDDDDDDDD啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊哈哈哈",
"hasImgFlg": "Y",
"postId": 78,
"postsTitle": ""
},
"oneDayAddNum": 0,
"orderBy": 0,
"postsNum": 5,
"praiseNum": 0
}
],
"resourceList": {
"advertList": {
"list": [
{
"src": "http://img11.static.yhbimg.com/yhb-img01/2016/07/07/15/011a5c3f9c95ff519647356758f182727c.jpg?imageView2/{mode}/w/{width}/h/{height}",
"url": []
},
{
"src": "http://img11.static.yhbimg.com/yhb-img01/2016/07/07/15/015ad6f59bb314007cbbb237aa4e94ecf2.jpg?imageView2/{mode}/w/{width}/h/{height}",
"url": []
},
{
"src": "http://img10.static.yhbimg.com/yhb-img01/2016/07/07/15/01c4823176bf27244158462386ad708193.jpg?imageView2/{mode}/w/{width}/h/{height}",
"url": []
},
{
"src": "http://img10.static.yhbimg.com/yhb-img01/2016/07/07/15/0191dd4006137d9ff4d2cd5af3391d0ef5.jpg?imageView2/{mode}/w/{width}/h/{height}",
"url": []
}
],
"speed": ""
}
}
],
"md5": "a8285a086d14559708a2b966332dc324",
},
"md5": "4ecd25f626a0f6d805645f14a16c7e32",
"message": "社区首页版块成功."
}
```
... ...