工作台主页
GET
/adminapi/Workbench/index请求参数
无
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
version
object
版本信息
today
object
今日数据
menu
array [object {3}]
常用功能
visitor
object
访问量
article
array [object {2}]
文章阅读量
示例成功示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"version": {
"version": "1.0.0",
"website": "likeshop.cn"
},
"today": {
"time": "2021-12-29 16:58:09",
"today_sales": 100,
"total_sales": 1000,
"today_visitor": 10,
"total_visitor": 100,
"today_new_user": 30,
"total_new_user": 3000
},
"menu": [
{
"name": "工作台",
"image": "resource/image/adminapi/default/avatar.png",
"url": "baidu.com"
},
{
"name": "工作台",
"image": "resource/image/adminapi/default/avatar.png",
"url": "baidu.com"
}
],
"visitor": {
"date": [
"2021/12/29",
"2021/12/28",
"2021/12/27",
"2021/12/26",
"2021/12/25",
"2021/12/24",
"2021/12/23",
"2021/12/22",
"2021/12/21",
"2021/12/20",
"2021/12/19",
"2021/12/18",
"2021/12/17",
"2021/12/16",
"2021/12/15"
],
"list": [
{
"name": "访客数",
"data": [
40,
56,
93,
39,
15,
67,
93,
35,
34,
8,
98,
86,
88,
82,
31
]
}
]
},
"article": [
{
"name": "文章1",
"read": 1000
},
{
"name": "文章2",
"read": 800
},
{
"name": "文章3",
"read": 600
},
{
"name": "文章4",
"read": 400
}
]
}
}
![](https://cdn.apifox.com/app/apidoc-image/custom/20230616/a471fbe4-8cc7-443e-aef5-0eaa31d0c10a.png)
修改于 2 年前