Authored by wangning

修改格式

@@ -3,12 +3,19 @@ @@ -3,12 +3,19 @@
3 3
4 - 参数:author_id作者id 4 - 参数:author_id作者id
5 client_type客户端类型 5 client_type客户端类型
  6 +
6 - 方法解释:根据作者id和客户端类型获得作者详细信息 7 - 方法解释:根据作者id和客户端类型获得作者详细信息
  8 +
7 - 实现逻辑: 9 - 实现逻辑:
8 -1.进入ArticleAuthorController.getAuthor方法,直接调用sns.getArticeAuthor服务  
9 -2.对参数进行校验  
10 -3.根据author_id查询表author得到对象author,如果为空直接返回作者不存在  
11 -4.根据author封装对象ArticleAuthorRspBO,然后返回 10 +
  11 + 1.进入ArticleAuthorController.getAuthor方法,直接调用sns.getArticeAuthor服务
  12 +
  13 + 2.对参数进行校验
  14 +
  15 + 3.根据author_id查询表author得到对象author,如果为空直接返回作者不存在
  16 +
  17 + 4.根据author封装对象ArticleAuthorRspBO,然后返回
  18 +
12 - 示例: 19 - 示例:
13 请求:http://localhost:8080/gateway/guang/service/*/author/getAuthor?author_id=380463&client_type=h5&debug=XYZ 20 请求:http://localhost:8080/gateway/guang/service/*/author/getAuthor?author_id=380463&client_type=h5&debug=XYZ
14 返回:{"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"} 21 返回:{"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"}