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
8ad73de602235b3ac7d847c66aa8f69a6f638e10
1 parent
39f49150
ArticleContentController根据文章id获取文章内容判断是否收藏
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
业务分享/逛的业务流分享/ArticleContentController.md
业务分享/逛的业务流分享/ArticleContentController.md
View file @
8ad73de
...
...
@@ -22,10 +22,10 @@
## 3、 sns模块业务处理过程 ##
### (1) 获取文章内容 ###
服务入口:"/
guang/service/
*
/article
/getArticleContent",com.yoho.yhsns.guang.restapi. ArticleContentRest的getArticleContent()方法;
服务入口:"/
ArticleContentRest
/getArticleContent",com.yoho.yhsns.guang.restapi. ArticleContentRest的getArticleContent()方法;
入口数据:ArticleContentReqBO中的文章内容请求信息:article_id和client_type;
处理过程:通过调用IArticleContentService类中的getArticleContent()方法,验证请求信息中的article_id后,从数据库表article_block中获取该文章id对应的blocks信息,转换block对象,构造返回对象;
### (2) 判断用户是否收藏逛的文章 ###
服务入口:"/
guang/service/
*
/article
/checkArticleFav",com.yoho.yhsns.guang.restapi. ArticleContentRest的checkArticleFav ()方法;
服务入口:"/
ArticleContentRest
/checkArticleFav",com.yoho.yhsns.guang.restapi. ArticleContentRest的checkArticleFav ()方法;
入口数据:ArticleContentReqBO中的文章内容请求信息:article_id,uid;
处理过程:通过调用IArticleContentService类中的checkArticleFav ()方法,验证请求信息中的article_id,uid,访问数据库表user_favorite判断是否被该用户收藏,返回boolean类型值.
...
...
Please
register
or
login
to post a comment