Authored by tanling

no message

... ... @@ -21,36 +21,22 @@
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8080/gateway?method=app.social.addPost&postsTitle=棉花米阿奴啊&aid=121212&forumCode=1002&contentData=HHAHAHA&images=/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png,/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d5.png&debug=XYZ
http://192.168.102.205:8095/social/?method=app.social.addPost&postsTitle=棉花米阿奴啊&uid=8657461&forumCode=10001&contentData=HHAHAHA&images=/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png,/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d5.png
### 入参(示例)
JSON格式如下所示:
```json
{
"postsTitle": "棉花米阿奴啊",
"uid": "2222222",
"forumCode": "1002",
"contentData": "啊啊啊啊啊啊SDDDDDDDD啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊哈哈哈哈哈哈哈哈啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊",
"images": [
"/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png",
"/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d5.png"
]
}
```
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"message": "操作成功",
"md5": "e94755baf4141dba54c2254ba0091a7a",
"alg": "SALT_MD5",
"data": {
"code": 200,
"message": "添加成功."
},
"md5": "e94755baf4141dba54c2254ba0091a7a",
"message": "操作成功"
}
}
```
... ... @@ -95,22 +81,21 @@ code为200即为成功,否则是失败。
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8080/gateway?method=app.social.getPostUser&uid=1001
http://192.168.102.205:8095/social/?method=app.social.getPostUser&uid=8657461
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"message": "操作成功",
"md5": "13f655549daf36c77f3438e28bdf9a82",
"alg": "SALT_MD5",
"data": {
"forbidNickname": "N",
"forbidSpeaking": "N"
},
"md5": "8a8b73f33eba61ca57d6ea2a9675b207",
"message": "操作成功"
"forbidSpeaking": "Y",
"forbidNickname": "N"
}
}
```
... ... @@ -146,7 +131,7 @@ code为200即为成功,否则是失败。
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8080/gateway?method=app.social.getForum
http://192.168.102.205:8095/social/?method=app.social.getForum
### 响应
... ... @@ -154,48 +139,52 @@ code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"message": "操作成功",
"md5": "a8a0371c2c8839bd58d66e4061de6e4a",
"alg": "SALT_MD5",
"data": [
{
"forumName": "版块1",
"forumDesc": "版块1的说明",
"orderBy": 1,
"forumCode": 10001,
"yohoAdvertCode": "code2",
"magazineAdvertCode": "code1",
"forumPic": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png"
"forumCode": 10004,
"forumName": "SHOW",
"forumPic": "http://img03.res.yohoshow.com/headimg/2014/08/11/08/01ff9975fd0998afe1596d8d65cb13b959.jpg",
"forumDesc": "这是版块4的简介",
"orderBy": 0,
"position": 7,
"magazineAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7",
"yohoAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7"
},
{
"forumName": "版块2",
"forumDesc": "版块2的说明",
"forumCode": 10001,
"forumName": "复古市集会",
"forumPic": "http://img03.res.yohoshow.com/headimg/2014/08/11/08/017140b215ec8b11bfe8001beee9042899.jpg",
"forumDesc": "这是版块1的简介",
"orderBy": 1,
"forumCode": 10002,
"yohoAdvertCode": "code2",
"magazineAdvertCode": "code1",
"forumPic": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png"
"position": 4,
"magazineAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7",
"yohoAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7"
},
{
"forumName": "版块3",
"forumDesc": "版块3的说明",
"orderBy": 1,
"forumCode": 10003,
"yohoAdvertCode": "code2",
"magazineAdvertCode": "code1",
"forumPic": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png"
"forumCode": 10002,
"forumName": "SNEAKER",
"forumPic": "http://img03.res.yohoshow.com/headimg/2014/08/11/08/017187b41db085fe8cbf490dc40096c7f5.jpg",
"forumDesc": "这是版块2的简介",
"orderBy": 2,
"position": 5,
"magazineAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7",
"yohoAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7"
},
{
"forumName": "版块4",
"forumDesc": "版块4的说明",
"orderBy": 1,
"forumCode": 10004,
"yohoAdvertCode": "code2",
"magazineAdvertCode": "code1",
"forumPic": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png"
"forumCode": 10003,
"forumName": "YOHO",
"forumPic": "http://img03.res.yohoshow.com/headimg/2014/08/11/08/01dddad6ce2295dd18d117dba99816266a.jpg",
"forumDesc": "这是版块3的简介",
"orderBy": 3,
"position": 6,
"magazineAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7",
"yohoAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7"
}
],
"md5": "c6d3b0665e9b1a6dff7a6f0253cd1c74",
"message": "操作成功"
]
}
```
## 4、删除帖子##
... ...