获取分类下的文章
GET
article-sort/article最后修改时间: 2 年前
责任人:
请求参数
Query 参数
id
integer
标签ID
示例值:
1
page
integer
分页
示例值:
1
limit
integer
限制数据条目
示例值:
5
order
string
排序方式
示例值:
create_time asc
cache
string
是否获取缓存数据
示例值:
true
示例代码
返回响应
请求成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
状态码
msg
string
信息
data
string | integer | boolean | array | object | number | null
数据
示例
{
"code": 200,
"msg": "数据请求成功!",
"data": {
"id": 1,
"name": "Web全栈",
"description": "这是一个默认的分类描述",
"is_show": 1,
"expand": {
"page": 1,
"count": 1,
"data": [
{
"id": 1,
"title": "inis博客系统",
"description": "当你看到这篇文章,就表示您的系统已经搭建成功!",
"is_top": 1,
"is_show": 1,
"img_src": null,
"views": 106519,
"font_count": 7007,
"sort_id": "|1|",
"tag_id": "|2|",
"users_id": 1,
"expand": {
"author": {
"nickname": "兔子",
"head_img": "//q.qlogo.cn/g?b=qq&nk=97783391&s=640",
"email": "racns@qq.com",
"address_url": "https://inis.cn",
"description": "许一人以偏爱,尽此生之慷慨!",
"pay": {
"alipay": "",
"wechat_pay": "",
"qq_pay": ""
}
},
"tag": [
{
"id": 2,
"name": "ThinkPHP",
"color": "danger"
}
],
"sort": [
{
"id": 1,
"name": "Web全栈"
}
],
"img_src": "https://api.inis.cn/api/file/random?id=1",
"images": [
{
"alt": "登录",
"src": "https://api.inis.cn/storage/users/files/1/2022-04/1649592269.png"
},
{
"alt": "注册",
"src": "https://api.inis.cn/storage/users/files/1/2022-04/1649592294.png"
},
{
"alt": "撰写文章",
"src": "https://api.inis.cn/storage/users/files/1/2022-04/1649592389.png"
},
{
"alt": "系统配置",
"src": "https://api.inis.cn/storage/users/files/1/2022-04/1649592412.png"
},
{
"alt": "文件系统",
"src": "https://api.inis.cn/storage/users/files/1/2022-04/1649592431.png"
},
{
"alt": "API商城",
"src": "https://api.inis.cn/storage/users/files/1/2022-04/1649592449.png"
},
{
"alt": "文章管理",
"src": "https://api.inis.cn/storage/users/files/1/2022-04/1649592477.png"
},
{
"alt": "用户管理",
"src": "https://api.inis.cn/storage/users/files/1/2022-04/1649592499.png"
},
{
"alt": "夜间模式",
"src": "https://api.inis.cn/storage/users/files/1/2022-04/1649592514.png"
},
{
"alt": "首页",
"src": "https://inis.cc/storage/users/files/uid-1/2022-04/1649437101.png"
},
{
"alt": "文章详情",
"src": "https://inis.cc/storage/users/files/uid-1/2022-04/1649437093.png"
},
{
"alt": "搜索",
"src": "https://inis.cc/storage/users/files/uid-1/2022-04/1649437109.png"
},
{
"alt": "自定义页面",
"src": "https://inis.cc/storage/users/files/uid-1/2022-04/1649437117.png"
},
{
"alt": "文章分类",
"src": "https://inis.cc/storage/users/files/uid-1/2022-04/1649437124.png"
},
{
"alt": "数学公式",
"src": "https://inis.cc/storage/users/files/uid-1/2022-04/1649437130.png"
},
{
"alt": "收款码",
"src": "https://api.inis.cn/storage/users/files/1/2022-04/1649594410.png"
}
],
"comments": {
"show": true,
"allow": true,
"count": 31
}
},
"opt": {
"auth": "anyone",
"comments": {
"show": "true",
"allow": "true"
}
},
"longtext": null,
"delete_time": null,
"create_time": "2022-04-10 19:02:49",
"update_time": "2022-09-28 09:56:09",
"last_update_time": "1661130887"
}
]
},
"opt": {
"head_img": ""
},
"longtext": null,
"create_time": "2022-04-19 14:59:22",
"update_time": "2022-04-19 14:59:22"
}
}
最后修改时间: 2 年前