ArticleContentInfoController根据文章id获得文章增加浏览记录
Showing
1 changed file
with
18 additions
and
0 deletions
业务分享/逛的业务流分享/ArticleContentInfoController.md
0 → 100644
1 | +# 逛(sns) ArticleContentInfoController 业务逻辑 # | ||
2 | +功能描述:根据文章id和客户端类型获得文章,并增加浏览记录 | ||
3 | +## 1、 getway入口 ## | ||
4 | + 需要参数:String article_id,String client_type; | ||
5 | + 类名com.yoho.gateway.controller.guang.ArticleContentInfoController; | ||
6 | + 方法名:getArticleContentForIdClientType. | ||
7 | + | ||
8 | +## 2、 返回 ## | ||
9 | + 通过实例ArticleContentReqBO请求类获取AO参数值:article_id和client_type; | ||
10 | + 通过serviceCaller调用sns模块的com.yoho.yhsns.guang.restapi.ArticleDoorRest.getArticleContentForIdClientType()方法进行具体业务处理; | ||
11 | + 返回封装的ArticleRspBO对象. | ||
12 | + | ||
13 | + | ||
14 | +## 3、 sns模块业务处理过程 ## | ||
15 | + | ||
16 | + 服务入口:com.yoho.yhsns.guang.restapi.ArticleDoorRest的getArticleContentForIdClientType()方法; | ||
17 | + 入口数据:ArticleContentReqBO中的文章内容请求参数:article_id和client_type; | ||
18 | + 处理过程:通过调用IArticleService类中的getArticleContentForIdClientType()方法,根据文章id号从数据库表article中获取文章内容,并且访问数据库表article,将该表字段browse值加1,即增加浏览次数,返回封装的ArticleRspBO对象. |
-
Please register or login to post a comment