前端门户

本文档详细介绍了前端门户的各种API,包括文章、评论、照片、搜索和网站信息等接口的使用方法。例如,获取文章详情、标签、分类下的文章列表、评论操作以及获取网站配置信息等,为开发者提供了全面的接口调用示例。
摘要由CSDN通过智能技术生成

前端门户


1.文章接口

1.getArticleDetail(获取文章详情)

方法:get
		参数:
		body字段: 
		接口:/portal/article/
		实例:http://localhost:2021/portal/article/754733181474701312
		返回:

2. getLabels(获取标签)

	方法:get
	参数:
	body字段:size
	接口:/portal/article/
	实例:http://localhost:2021/portal/article/label/5
	返回:

3.listArticleByCategoryId(通过分类id获取文章)

	方法:get
	参数:
	body字段:categoryId  page  size
	接口:/portal/article/list_categoryId
	实例:http://localhost:2021/portal/article/list_categoryId/747858461202579456/2/2
	返回:

4. listArticleByLabel(通过标签获取文章)

	方法:get
	参数:
	body字段:label size page
	接口:/portal/article/list/
	实例:http://localhost:2021/portal/article/list/string/1/2
	返回:

5. listArticle(获取文章)

	方法:get
	参数:
	body字段:page size
	接口:/portal/article/list
	实例:http://localhost:2021/portal/article/list/1/2
	返回:

6.getRecommendArticles(通过文章id获取推荐文章)

	方法:get
	参数:
	body字段:articleId, size
	接口:/portal/article/recommend
	实例:http://localhost:2021/portal/article/recommend/755891760277749760/5
	返回:

7.getTopArticles(获取置顶文章)

	方法:get
	参数:
	body字段:
	接口:/portal/article/top
	实例:http://localhost:2021/portal/article/top/
	返回:

2.评论接口

1. postComment(写入评论)

	方法:post
	参数:
	body字段:

{
“articleId”: “755891760277749760”,
“content”: “string”,
“parentContent”: “string”
}
parentContent表示回复的评论,可以无,无就是回复文章
接口:/portal/comment
实例:http://localhost:2021/portal/comment
返回

2.删除评论

	方法:delete
	参数:
	body字段:commentId
	接口:/portal/comment/
实例:http://localhost:2021/portal/comment/759016093925769216
	返回

3获取评论列表.

	方法:get
	参数:
	body字段:page size
	接口:/portal/comment/list		
	实例:http://localhost:2021/portal/comment/list/2/2
	返回

3.照片接口

1.获取照片

方法:get
实例:http://localhost:2021/portal/image/1599661589358_753380839844216832.png
接口:/portal/image
body字段:url

4.搜索接口

1.doSearch(搜索)

暂无

5.网站信息门户

1.getCategories(获取分类列表)

方法:get
接口:http://localhost:2021/portal/web_size_info/categories
body参数:无
实例:http://localhost:2021/portal/web_size_info/categories

2.getLinks(获取友情链接列表)

方法:get
接口:/portal/web_size_info/friend_link
body参数:无
实例:http://localhost:2021/portal/web_size_info/friend_link

3.getLoops(获取轮播图列表)

方法:get
接口:/portal/web_size_info/loop
body参数:无
实例:http://localhost:2021/portal/web_size_info/loop

4.getWebSiteSeo(获取网站seo)

方法:get
接口:/portal/web_size_info/seo
body参数:
实例:http://localhost:2021/portal/web_size_info/seo
返回:

{
“success”: true,
“code”: 20000,
“message”: “获取Seo成功”,
“data”: {
“web_size_description”: “这是descripion”,
“web_size_keywords”: “这是descripion”
}
}

5.getWebSiteTitel

方法:get
接口:/portal/web_size_info/title
body参数:无
实例:http://localhost:2021/portal/web_size_info/title

6.getWebSiteViewCount(获取位置浏览量)

方法:get
接口:/portal/web_size_info/view_count
body参数:无
实例:http://localhost:2021/portal/web_size_info/view_count

7.updateViewCount(更新网站浏览量)

方法:post
接口:/portal/web_size_info/view_count
body参数:
实例:http://localhost:2021/portal/web_size_info/view_count
注意:该api只是更新redius上面的浏览量数据,数据库没有相应的更新

其他接口

一 .用户中心接口
二.前端门户
三.管理中心

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值