Showing
1 changed file
with
29 additions
and
9 deletions
1 | # ArticleBrandController根据品牌获取文章信息 # | 1 | # ArticleBrandController根据品牌获取文章信息 # |
2 | -## 1. getArticleByBrand方法 ## | 2 | +## 1.getArticleByBrand方法 ## |
3 | 3 | ||
4 | - - 参数:brand_id品牌id | ||
5 | - client_type客户端类型 | ||
6 | - limit查询文章条数 | ||
7 | - udid点赞用户 | ||
8 | 4 | ||
5 | +-请求参数: | ||
9 | 6 | ||
10 | - - 方法解释:获取某品牌下的文章信息 | 7 | +| 参数名称 | 参数类型 | 可否为空 | 备注 | |
8 | +|:-------| -----:|-----:|-----:| | ||
9 | +|brand_id|int|否|品牌id | | ||
10 | +|client_type|string|否|客户端类型| | ||
11 | +|limit|int|否|查询文章条数| | ||
12 | +|udid|string|否|设备号| | ||
11 | 13 | ||
12 | - - 实现逻辑: | 14 | + |
15 | + -方法解释:获取某品牌下的文章信息 | ||
16 | + | ||
17 | + -实现逻辑: | ||
13 | 18 | ||
14 | 1.进入ArticleBrandController.getArticleByBrand方法,调用sns.getArticleByBrand服务 | 19 | 1.进入ArticleBrandController.getArticleByBrand方法,调用sns.getArticleByBrand服务 |
15 | 20 | ||
@@ -23,7 +28,22 @@ | @@ -23,7 +28,22 @@ | ||
23 | 28 | ||
24 | 6.封装数据并返回 | 29 | 6.封装数据并返回 |
25 | 30 | ||
26 | - - 示例: | 31 | + -示例: |
32 | + | ||
27 | 请求:http://localhost:8080/gateway/guang/service/*/author/getAuthor?author_id=380463&client_type=h5&debug=XYZ | 33 | 请求:http://localhost:8080/gateway/guang/service/*/author/getAuthor?author_id=380463&client_type=h5&debug=XYZ |
28 | 34 | ||
29 | -返回:{"alg":"SALT_MD5","code":200,"data":{"author_desc":"Because i'm fierce,bitch!","avatar":"http://img12.static.yhbimg.com/yhb-img02/2015/06/12/12/02aafe4efc368f307c02b692cf1f862570.jpg?imageView/0/w/100/h/100","name":"uncle-sam","url":"http://guang.m.yohobuy.com/author/index?id=380463"},"md5":"48e694554ff8e252f7ff59ab09435c83","message":"author info"} | ||
35 | +返回: | ||
36 | +``` | ||
37 | +{ | ||
38 | + "alg": "SALT_MD5", | ||
39 | + "code": 200, | ||
40 | + "data": { | ||
41 | + "author_desc": "Because i'm fierce,bitch!", | ||
42 | + "avatar": "http://img12.static.yhbimg.com/yhb-img02/2015/06/12/12/02aafe4efc368f307c02b692cf1f862570.jpg?imageView/0/w/100/h/100", | ||
43 | + "name": "uncle-sam", | ||
44 | + "url": "http://guang.m.yohobuy.com/author/index?id=380463" | ||
45 | + }, | ||
46 | + "md5": "48e694554ff8e252f7ff59ab09435c83", | ||
47 | + "message": "author info" | ||
48 | +} | ||
49 | +``` |
-
Please register or login to post a comment