管理中心
标题1文章
1.写入文章
方法:post
接口:/admin/article
实例:http://localhost:2021/admin/article
body数据:
{
"categoryId": "2334363446",
"content": "string",
"cover": "string",
"createTime": "2020-09-25T07:32:46.502Z",
"id": "string",
"label": "strin",
"state": "1",
"summary": "string",
"title": "string"
}
2.获取文章
方法:get
body数锯:articleId
接口:/admin/article
实例:http://localhost:2021/admin/article/757278985833938944
3.更新文章
方法:put
body数据:articleId
{
"categoryId": "747858461202579456",
"content": "stri"
}
接口:/admin/article/
实例:http://localhost:2021/admin/article/757278985833938944
4.删除文章
方法:delete
body数据:articleId
实例:http://localhost:2021/admin/article/75727898583938944
接口:/admin/article
5.获取文章列表
方法:get
参数:catetoryId,keyword, state,三参数可以不写,keyword主要匹配文章标题title
body数据:page,size
接口:/admin/article/list
实例:http://localhost:2021/admin/article/list/1/3?categoryId=2334363446&keyword=r&state=2;
http://localhost:2021/admin/article/list/1/3
6.删除文章(*假删)
方法:put
body参数:articleId
接口:/admin/article/state
实例:http://localhost:2021/admin/article/state/757278747396145152
7.置顶文章
方法:put
body数据“articleId
接口:/admin/article/top
实例:http://localhost:2021/admin/article/top/757278249439985664
2.分类
1.增加分类
方法:post
body数据:
{
"description": "string",
"name": "string",
"order": 0,
"pinyin": "string",
"status": "string"
}
接口:/admin/category
实例http://localhost:2021/admin/category
2.获取分类
方法:get
body数据:categoryId
接口/admin/category/:
实例:http://localhost:2021/admin/category/2334363446
3.更新分类
方法:put
body数据:categoryId,
{
"description": "strng",
"name": "strng",
"order": 1,
"pinyin": "strig",
"status": "strng"
}
接口:/admin/category/
实例:http://localhost:2021/admin/category/759365849717932032
4.删除分类(假删)
方法:delete
body数据:categoryId
接口:/admin/category/
实例:http://localhost:2021/admin/category/759365849717932032
5.获取分类列表
方法:get
body数据:无
接口:/admin/category/list
实例:http://localhost:2021/admin/category/list
3.评论
1.删除评论(真删)
方法:delete
body参数:commentId
接口:/admin/comment
实例:http://localhost:2021/admin/comment/757566140804235264
2.获取评论列表
方法:get
body参数:page,size
接口:/admin/comment/list
实例:http://localhost:2021/admin/comment/list?page=2&size=3
3.评论置顶
方法:put
body参数:commentId
接口:/admin/comment/top/
实例:http://localhost:2021/admin/comment/top/757566102707372032
4.友情链接
1.增加友情链接
方法:post
body参数:
{
"logo": "string",
"name": "string",
"order": 0,
"state": "string",
"url": "string"
}
接口:/admin/friend_link
实例:http://localhost:2021/admin/friend_link
2.获取友情链接
方法:get
body参数:friendlinkId
接口:/admin/friend_link/
实例:http://localhost:2021/admin/friend_link/759376755105464320
3.更新友情链接
方法:put
body参数:friendLinkId,
{
"logo": "strng",
"name": "strng",
"order": 1,
"state": "strng",
"url": "strng"
}
接口:/admin/friend_link
实例:http://localhost:2021/admin/friend_link/759376755105464320
4.删除友情链接(假删)
方法:delete
body参数:friendLinkId
接口:/admin/friend_link
实例:http://localhost:2021/admin/friend_link/759376755105464320
5.获取友情链接列表
方法:get
body参数:page,size
接口:/admin/friend_link/list
实例:http://localhost:2021/admin/friend_link/list
5.照片
1.增加照片
方法:post
接口:/admin/image
实例:http://localhost:2021/admin/image
2.获取照片
方法:get
body参数:url
接口:/admin/image /
实例:http://localhost:2021/admin/image/1601092043879_759380600967659520.png
3.删除照片(假删)
方法:delete
body参数:imageId
接口:/admin/image
实例:http://localhost:2021/admin/image/759380600967659520
4.获取照片列表(只能与登录id一样并且状态非删除)
方法:get
body参数:page,size
接口:/admin/image
实例:http://localhost:2021/admin/image/list/1/5
6.轮播图
1.增加轮播图
方法:post
body参数:
{
"imageUrl": "string",
"order": 0,
"targetUrl": "string",
"title": "string"
}
接口:/admin/loop
实例http://localhost:2021/admin/loop
2.获取轮播图
方法:get
body参数:loopId
接口:/admin/loop/
实例:http://localhost:2021/admin/loop/759384776812527616
3.删除轮播图(假删)
方法:delete
body参数:loopId
接口:/admin/loop
实例:http://localhost:2021/admin/loop/759380600967659520
4.获取照片列表
方法:get
body参数:无
接口:/admin/image
实例:http://localhost:2021/admin/loop/list/1/5
5.更新轮播图
方法:put
body参数:loopId,
{
"imageUrl": "sring",
"order": 0,
"state": "dfdf",
"targetUrl": "tring",
"title": "tring"
}
接口:/admin/loop/
实例:
http://localhost:2021/admin/loop/759384776812527616
7.网站信息
1.获取网站seo
方法:get
body参数:无
接口:/admin/web_size_info/seo
实例:http://localhost:2021/admin/web_size_info/seo
2.更改或者录入网站seo
方法:put
body参数:description,keywords
接口:/admin/web_size_info/seo
实例:http://localhost:2021/admin/web_size_info/seo?description=sf&keywords=sas
3获取网站标题.
方法:get
body参数:无
接口:/admin/web_size_info/title
实例:http://localhost:2021/admin/web_size_info/title
4.录入或更改网站title
方法:put
body参数:title
接口:/admin/web_size_info/title
实例:http://localhost:2021/admin/web_size_info/title?title=thisIsnewtitle
5.获取网站流量
方法:get
body参数:无
接口:/admin/web_size_info/view_count
实例:http://localhost:2021/admin/web_size_info/view_count