Showing
1 changed file
with
48 additions
and
59 deletions
@@ -21,36 +21,22 @@ | @@ -21,36 +21,22 @@ | ||
21 | 21 | ||
22 | 注意,通用的头部没有列出。 | 22 | 注意,通用的头部没有列出。 |
23 | 请求示例 | 23 | 请求示例 |
24 | -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 | 24 | +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 |
25 | 25 | ||
26 | -### 入参(示例) | ||
27 | -JSON格式如下所示: | ||
28 | -```json | ||
29 | -{ | ||
30 | - "postsTitle": "棉花米阿奴啊", | ||
31 | - "uid": "2222222", | ||
32 | - "forumCode": "1002", | ||
33 | - "contentData": "啊啊啊啊啊啊SDDDDDDDD啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊哈哈哈哈哈哈哈哈啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊", | ||
34 | - "images": [ | ||
35 | - "/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png", | ||
36 | - "/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d5.png" | ||
37 | - ] | ||
38 | -} | ||
39 | -``` | ||
40 | 26 | ||
41 | ### 响应 | 27 | ### 响应 |
42 | code为200即为成功,否则是失败。 | 28 | code为200即为成功,否则是失败。 |
43 | 响应JSON格式如下所示: | 29 | 响应JSON格式如下所示: |
44 | ```json | 30 | ```json |
45 | { | 31 | { |
46 | - "alg": "SALT_MD5", | ||
47 | "code": 200, | 32 | "code": 200, |
33 | + "message": "操作成功", | ||
34 | + "md5": "e94755baf4141dba54c2254ba0091a7a", | ||
35 | + "alg": "SALT_MD5", | ||
48 | "data": { | 36 | "data": { |
49 | "code": 200, | 37 | "code": 200, |
50 | "message": "添加成功." | 38 | "message": "添加成功." |
51 | - }, | ||
52 | - "md5": "e94755baf4141dba54c2254ba0091a7a", | ||
53 | - "message": "操作成功" | 39 | + } |
54 | } | 40 | } |
55 | ``` | 41 | ``` |
56 | 42 | ||
@@ -95,22 +81,21 @@ code为200即为成功,否则是失败。 | @@ -95,22 +81,21 @@ code为200即为成功,否则是失败。 | ||
95 | 81 | ||
96 | 注意,通用的头部没有列出。 | 82 | 注意,通用的头部没有列出。 |
97 | 请求示例 | 83 | 请求示例 |
98 | -http://192.168.102.205:8080/gateway?method=app.social.getPostUser&uid=1001 | ||
99 | - | 84 | +http://192.168.102.205:8095/social/?method=app.social.getPostUser&uid=8657461 |
100 | 85 | ||
101 | ### 响应 | 86 | ### 响应 |
102 | code为200即为成功,否则是失败。 | 87 | code为200即为成功,否则是失败。 |
103 | 响应JSON格式如下所示: | 88 | 响应JSON格式如下所示: |
104 | ```json | 89 | ```json |
105 | { | 90 | { |
106 | - "alg": "SALT_MD5", | ||
107 | "code": 200, | 91 | "code": 200, |
92 | + "message": "操作成功", | ||
93 | + "md5": "13f655549daf36c77f3438e28bdf9a82", | ||
94 | + "alg": "SALT_MD5", | ||
108 | "data": { | 95 | "data": { |
109 | - "forbidNickname": "N", | ||
110 | - "forbidSpeaking": "N" | ||
111 | - }, | ||
112 | - "md5": "8a8b73f33eba61ca57d6ea2a9675b207", | ||
113 | - "message": "操作成功" | 96 | + "forbidSpeaking": "Y", |
97 | + "forbidNickname": "N" | ||
98 | + } | ||
114 | } | 99 | } |
115 | ``` | 100 | ``` |
116 | 101 | ||
@@ -146,7 +131,7 @@ code为200即为成功,否则是失败。 | @@ -146,7 +131,7 @@ code为200即为成功,否则是失败。 | ||
146 | 131 | ||
147 | 注意,通用的头部没有列出。 | 132 | 注意,通用的头部没有列出。 |
148 | 请求示例 | 133 | 请求示例 |
149 | -http://192.168.102.205:8080/gateway?method=app.social.getForum | 134 | +http://192.168.102.205:8095/social/?method=app.social.getForum |
150 | 135 | ||
151 | 136 | ||
152 | ### 响应 | 137 | ### 响应 |
@@ -154,48 +139,52 @@ code为200即为成功,否则是失败。 | @@ -154,48 +139,52 @@ code为200即为成功,否则是失败。 | ||
154 | 响应JSON格式如下所示: | 139 | 响应JSON格式如下所示: |
155 | ```json | 140 | ```json |
156 | { | 141 | { |
157 | - "alg": "SALT_MD5", | ||
158 | "code": 200, | 142 | "code": 200, |
143 | + "message": "操作成功", | ||
144 | + "md5": "a8a0371c2c8839bd58d66e4061de6e4a", | ||
145 | + "alg": "SALT_MD5", | ||
159 | "data": [ | 146 | "data": [ |
160 | { | 147 | { |
161 | - "forumName": "版块1", | ||
162 | - "forumDesc": "版块1的说明", | ||
163 | - "orderBy": 1, | ||
164 | - "forumCode": 10001, | ||
165 | - "yohoAdvertCode": "code2", | ||
166 | - "magazineAdvertCode": "code1", | ||
167 | - "forumPic": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png" | 148 | + "forumCode": 10004, |
149 | + "forumName": "SHOW", | ||
150 | + "forumPic": "http://img03.res.yohoshow.com/headimg/2014/08/11/08/01ff9975fd0998afe1596d8d65cb13b959.jpg", | ||
151 | + "forumDesc": "这是版块4的简介", | ||
152 | + "orderBy": 0, | ||
153 | + "position": 7, | ||
154 | + "magazineAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7", | ||
155 | + "yohoAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7" | ||
168 | }, | 156 | }, |
169 | { | 157 | { |
170 | - "forumName": "版块2", | ||
171 | - "forumDesc": "版块2的说明", | 158 | + "forumCode": 10001, |
159 | + "forumName": "复古市集会", | ||
160 | + "forumPic": "http://img03.res.yohoshow.com/headimg/2014/08/11/08/017140b215ec8b11bfe8001beee9042899.jpg", | ||
161 | + "forumDesc": "这是版块1的简介", | ||
172 | "orderBy": 1, | 162 | "orderBy": 1, |
173 | - "forumCode": 10002, | ||
174 | - "yohoAdvertCode": "code2", | ||
175 | - "magazineAdvertCode": "code1", | ||
176 | - "forumPic": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png" | 163 | + "position": 4, |
164 | + "magazineAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7", | ||
165 | + "yohoAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7" | ||
177 | }, | 166 | }, |
178 | { | 167 | { |
179 | - "forumName": "版块3", | ||
180 | - "forumDesc": "版块3的说明", | ||
181 | - "orderBy": 1, | ||
182 | - "forumCode": 10003, | ||
183 | - "yohoAdvertCode": "code2", | ||
184 | - "magazineAdvertCode": "code1", | ||
185 | - "forumPic": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png" | 168 | + "forumCode": 10002, |
169 | + "forumName": "SNEAKER", | ||
170 | + "forumPic": "http://img03.res.yohoshow.com/headimg/2014/08/11/08/017187b41db085fe8cbf490dc40096c7f5.jpg", | ||
171 | + "forumDesc": "这是版块2的简介", | ||
172 | + "orderBy": 2, | ||
173 | + "position": 5, | ||
174 | + "magazineAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7", | ||
175 | + "yohoAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7" | ||
186 | }, | 176 | }, |
187 | { | 177 | { |
188 | - "forumName": "版块4", | ||
189 | - "forumDesc": "版块4的说明", | ||
190 | - "orderBy": 1, | ||
191 | - "forumCode": 10004, | ||
192 | - "yohoAdvertCode": "code2", | ||
193 | - "magazineAdvertCode": "code1", | ||
194 | - "forumPic": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png" | 178 | + "forumCode": 10003, |
179 | + "forumName": "YOHO", | ||
180 | + "forumPic": "http://img03.res.yohoshow.com/headimg/2014/08/11/08/01dddad6ce2295dd18d117dba99816266a.jpg", | ||
181 | + "forumDesc": "这是版块3的简介", | ||
182 | + "orderBy": 3, | ||
183 | + "position": 6, | ||
184 | + "magazineAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7", | ||
185 | + "yohoAdvertCode": "fa2ed392aa94e448ed47adfa13b759d7" | ||
195 | } | 186 | } |
196 | - ], | ||
197 | - "md5": "c6d3b0665e9b1a6dff7a6f0253cd1c74", | ||
198 | - "message": "操作成功" | 187 | + ] |
199 | } | 188 | } |
200 | ``` | 189 | ``` |
201 | ## 4、删除帖子## | 190 | ## 4、删除帖子## |
-
Please register or login to post a comment