Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Yoho-Documents
/
Share
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
lingmin
9 years ago
Commit
514e529c64d4f0220c1e0c0c3c3f6107bb4d55de
1 parent
27214a9a
guang.ArticleContentController业务流
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
业务分享/逛的业务流分享/guang.ArticleContentController.md
业务分享/逛的业务流分享/guang.ArticleContentController.md
0 → 100644
View file @
514e529
# 逛(sns) ArticleContentController 业务逻辑 #
## 1、 getway入口 ##
### (1)获取文章内容 ###
需要参数:String article_id,String client_type;
类名:com.yoho.gateway.controller.guang. ArticleContentController;
方法名:getArticleContent.
### (2)判断用户是否收藏逛的文章 ###
需要参数:String article_id,String client_type;
类名:com.yoho.gateway.controller.guang. ArticleContentController;
方法名:checkArticleFav
## 2、 返回 ##
### (1)获取文章内容 ###
通过实例ArticleContentReqBO请求类获取AO参数值:article_id和client_type;
通过serviceCaller调用sns模块的com.yoho.yhsns.guang.restapi.ArticleContentRest.getArticleContent()方法进行具体业务处理;
返回转换后的block对象
### (2)判断用户是否收藏逛的文章 ###
通过实例ArticleContentReqBO请求类获取AO参数值:article_id和client_type;
通过serviceCaller调用sns模块的com.yoho.yhsns.guang.restapi.ArticleContentRest. checkArticleFav ()方法进行具体业务处理;
返回boolean型值
## 3、 sns模块业务处理过程 ##
### (1) 获取文章内容 ###
服务入口:com.yoho.yhsns.guang.restapi. ArticleContentRest的getArticleContent()方法;
入口数据:ArticleContentReqBO中的文章内容请求信息:article_id和client_type;
处理过程:通过调用IArticleContentService类中的getArticleContent()方法,验证请求信息中的article_id后,获取数据库中的blocks信息,转换block对象,构造返回对象;
### (2) 判断用户是否收藏逛的文章 ###
服务入口:com.yoho.yhsns.guang.restapi. ArticleContentRest的checkArticleFav ()方法;
入口数据:ArticleContentReqBO中的文章内容请求信息:article_id;
处理过程:通过调用IArticleContentService类中的checkArticleFav ()方法,验证请求信息中的article_id,判断数据库中的user_favorite字段值,返回boolean类型值.
...
...
Please
register
or
login
to post a comment