控制台
开发中GET
/adminapi/workbench/index请求参数
Query 参数
id
integer
用户ID
示例值:
1
Header 参数
token
string
可选
示例值:
{{adminToken}}
Body 参数application/json
object {0}
示例
{}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
version
object
版本信息
today
object
今日数据
menu
array [object {3}]
常用功能
visitor
object
近15日访客数
sales
object
近15日销售量
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"version": {
"version": "1.1.0",
"website": "www.likeadmin.cn/",
"name": "likeadmin"
},
"today": {
"time": "2023-12-08 10:37:43",
"today_amount": 0,
"yesterday_amount": 0,
"contrast_amount": 0,
"today_order": 0,
"yesterday_order": 0,
"contrast_order": 0,
"today_user": 2,
"yesterday_user": 0,
"contrast_user": 2,
"today_visitor": 30,
"yesterday_visitor": 3000,
"contrast_visitor": 3000
},
"menu": [
{
"name": "写作类型",
"image": "http://www.php-ws.localhost/resource/image/adminapi/default/menu_admin.png",
"url": "/permission/admin"
},
{
"name": "生成记录",
"image": "http://www.php-ws.localhost/resource/image/adminapi/default/menu_role.png",
"url": "/permission/role"
},
{
"name": "订单管理",
"image": "http://www.php-ws.localhost/resource/image/adminapi/default/menu_dept.png",
"url": "/organization/department"
},
{
"name": "用户管理",
"image": "http://www.php-ws.localhost/resource/image/adminapi/default/menu_dict.png",
"url": "/dev_tools/dict"
},
{
"name": "财务中心",
"image": "http://www.php-ws.localhost/resource/image/adminapi/default/menu_gen.png",
"url": "/dev_tools/code"
},
{
"name": "Key池管理",
"image": "http://www.php-ws.localhost/resource/image/adminapi/default/menu_file.png",
"url": "/material/index"
},
{
"name": "通知设置",
"image": "http://www.php-ws.localhost/resource/image/adminapi/default/menu_auth.png",
"url": "/permission/menu"
},
{
"name": "网站设置",
"image": "http://www.php-ws.localhost/resource/image/adminapi/default/menu_web.png",
"url": "/setting/website/information"
}
],
"visitor": {
"date": [
"20231208",
"20231207",
"20231206",
"20231205",
"20231204",
"20231203",
"20231202",
"20231201",
"20231130",
"20231129",
"20231128",
"20231127",
"20231126",
"20231125",
"20231124"
],
"list": [
{
"name": "访客数",
"data": [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
]
}
]
},
"sales": {
"date": [
"20231208",
"20231207",
"20231206",
"20231205",
"20231204",
"20231203",
"20231202",
"20231201",
"20231130",
"20231129",
"20231128",
"20231127",
"20231126",
"20231125",
"20231124"
],
"list": [
{
"name": "销售量",
"data": []
}
]
}
}
}
最后修改时间: 1 年前