owl-admin
  1. 仪表盘
owl-admin
  • 后台
    • 公共
      • 不需要验证的接口
        • 获取登录页面
        • 登录
        • 获取验证码
        • 保存设置
        • 登出
        • no-context
        • 获取设置
        • 导出
      • 不需要权限的接口
        • 获取页面结构
        • 分块上传
        • 分块上传开始
        • 分块上传结束
        • 图片上传
        • 文件上传
        • 获取菜单
        • 获取当前用户
        • 富文本文件上传
        • 获取用户设置页面
        • 提交用户设置
      • 获取页面结构
      • icon 搜索
    • 仪表盘
      • 仪表盘页面
        GET
    • 后台用户
      • 更新用户
      • 删除用户
      • 创建用户
      • 获取编辑页面&数据
      • 获取页面&列表
    • 菜单
      • 创建菜单
      • 更新菜单
      • 获取页面&列表
      • 获取编辑页面&数据
      • 删除菜单
    • 角色
      • 更新角色
      • 新建角色
      • 删除角色
      • 获取页面&列表
      • 角色保存权限
      • 获取编辑页面&数据
    • 权限
      • 新建权限
      • 获取编辑页面&数据
      • 自动生成权限菜单关联关系
      • 删除权限
      • 编辑权限
      • 获取页面&列表
    • 开发工具
      • 代码生成器
        • 更新生成记录
        • 预览生成记录数据
        • 获取页面&列表
        • 创建生成记录
        • 删除生成记录
      • 页面相关
      • 关联关系
        • 模型选项
        • 字段选项
        • 所有模型
        • 生成模型
        • 关系列表
        • 关系 详情
        • 创建关系
        • 更新关系
        • 删除关系
      • APIs
        • 模板列表
        • 参数
        • 添加模板
        • api 列表
        • api 详情
        • api 更新
        • api 添加
        • api 删除
      • 扩展
    • amis 代码 转为php代码
      POST
  1. 仪表盘

仪表盘页面

GET
/dashboard

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://demo.owladmin.com/admin-api/dashboard' \
--header 'Authorization: Bearer <token>'

返回响应

🟢200成功
application/json
Body

示例
{"status":0,"msg":"","doNotDisplayToast":0,"data":{"type":"page","className":"m:overflow-auto","css":{".clear-card-mb":{"margin-bottom":"0 !important"},".cxd-Image":{"border":"0"},".bg-blingbling":{"color":"#fff","background":"linear-gradient(to bottom right, #2C3E50, #FD746C, #FF8235, #ffff1c, #92FE9D, #00C9FF, #a044ff, #e73827)","background-repeat":"no-repeat","background-size":"1000% 1000%","animation":"gradient 60s ease infinite"},"@keyframes gradient":["0%{background-position:0% 0%} 50%{background-position:100% 100%} 100%{background-position:0% 0%}"],".bg-blingbling .cxd-Card-title":{"color":"#fff"}},"body":[{"type":"grid","columns":[{"type":"card","className":"h-96","body":{"type":"wrapper","className":"h-full","body":[{"type":"flex","className":"h-full","direction":"column","justify":"center","alignItems":"center","items":[{"type":"image","src":"http:\/\/localhost\/admin-assets\/logo.png"},{"type":"wrapper","className":"text-3xl mt-9","body":"Owl Admin"},{"type":"flex","className":"w-64 mt-5","justify":"space-around","items":[{"type":"action","level":"link","label":"GitHub","blank":true,"actionType":"url","link":"https:\/\/github.com\/slowlyo\/owl-admin"},{"type":"action","level":"link","label":"OwlAdmin \u6587\u6863","blank":true,"actionType":"url","link":"http:\/\/doc.owladmin.com"},{"type":"action","level":"link","label":"Amis \u6587\u6863","blank":true,"actionType":"url","link":"https:\/\/aisuda.bce.baidu.com\/amis\/zh-CN\/docs\/index"}]}]}]},"md":5},{"type":"flex","items":[{"type":"card","className":"h-96","body":{"type":"chart","height":350,"config":"{\n  backgroundColor:'',\n  tooltip: { trigger: 'item' },\n  legend: { bottom: 0, left: 'center' },\n  series: [\n    {\n      name: 'Access From',\n      type: 'pie',\n      radius: ['40%', '70%'],\n      avoidLabelOverlap: false,\n      itemStyle: { borderRadius: 10, borderColor: '#fff', borderWidth: 2 },\n      label: { show: false, position: 'center' },\n      emphasis: { label: { show: true, fontSize: '40', fontWeight: 'bold' } },\n      labelLine: { show: false },\n      data: [ { value: 1048, name: 'Search Engine' }, { value: 735, name: 'Direct' }, { value: 580, name: 'Email' }, { value: 484, name: 'Union Ads' }, { value: 300, name: 'Video Ads' } ]\n    }\n  ]\n}"}},{"type":"card","className":"h-96 ml-4 w-8\/12","body":{"type":"tpl","html":"<style>\n    .cube-box{ height: 300px; display: flex; align-items: center; justify-content: center; }\n  .cube { width: 100px; height: 100px; position: relative; transform-style: preserve-3d; animation: rotate 10s linear infinite; }\n  .cube:after {\n    content: '';\n    width: 100%;\n    height: 100%;\n    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);\n    position: absolute;\n    transform-origin: bottom;\n    transform-style: preserve-3d;\n    transform: rotateX(90deg) translateY(50px) translateZ(-50px);\n    background-color: rgba(0, 0, 0, 0.1);\n  }\n  .cube div {\n    background-color: rgba(64, 158, 255, 0.7);\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    border: 1px solid rgb(27, 99, 170);\n    box-shadow: 0 0 60px rgba(64, 158, 255, 0.7);\n  }\n  .cube div:nth-child(1) { transform: translateZ(-50px); animation: shade 10s -5s linear infinite; }\n  .cube div:nth-child(2) { transform: translateZ(50px) rotateY(180deg); animation: shade 10s linear infinite; }\n  .cube div:nth-child(3) { transform-origin: right; transform: translateZ(50px) rotateY(270deg); animation: shade 10s -2.5s linear infinite; }\n  .cube div:nth-child(4) { transform-origin: left; transform: translateZ(50px) rotateY(90deg); animation: shade 10s -7.5s linear infinite; }\n  .cube div:nth-child(5) { transform-origin: bottom; transform: translateZ(50px) rotateX(90deg); background-color: rgba(0, 0, 0, 0.7); }\n  .cube div:nth-child(6) { transform-origin: top; transform: translateZ(50px) rotateX(270deg); }\n\n  @keyframes rotate {\n    0% { transform: rotateX(-15deg) rotateY(0deg); }\n    100% { transform: rotateX(-15deg) rotateY(360deg); }\n  }\n  @keyframes shade { 50% { background-color: rgba(0, 0, 0, 0.7); } }\n<\/style>\n<div class=\"cube-box\">\n    <div class=\"cube\">\n        <div><\/div>\n        <div><\/div>\n        <div><\/div>\n        <div><\/div>\n        <div><\/div>\n        <div><\/div>\n    <\/div>\n<\/div>"}}]}]},{"type":"grid","columns":[{"type":"card","className":"clear-card-mb","body":{"type":"chart","height":380,"className":"h-96","config":"{\nbackgroundColor:'',\ntitle:{ text: '\u4f1a\u5458\u589e\u957f\u60c5\u51b5', },\ntooltip: { trigger: 'axis' },\nxAxis: { type: 'category', boundaryGap: false, data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] },\nyAxis: { type: 'value' },\ngrid:{ left: '7%', right:'3%', top: 60, bottom: 30, },\nlegend: { data: ['\u8bbf\u95ee\u91cf','\u6ce8\u518c\u91cf'] },\nseries: [\n    { name: '\u8bbf\u95ee\u91cf', data: [141,110,93,32,48,132,24], type: 'line', areaStyle: {}, smooth: true, symbol: 'none', },\n    { name:'\u6ce8\u518c\u91cf', data: [182,191,10,144,10,127,170], type: 'line', areaStyle: {}, smooth: true, symbol: 'none', },\n]}"},"md":8},{"type":"flex","className":"h-full","items":[{"type":"card","className":"h-full bg-blingbling","header":{"title":"\u65f6\u949f"},"body":[{"type":"custom","name":"clock","html":"<div id=\"clock\" class=\"text-4xl\"><\/div><div id=\"clock-date\" class=\"mt-5\"><\/div>","onMount":"const clock = document.getElementById('clock');\nconst tick = () => {\n    clock.innerHTML = (new Date()).toLocaleTimeString();\n    requestAnimationFrame(tick);\n};\ntick();\n\nconst clockDate = document.getElementById('clock-date');\nclockDate.innerHTML = (new Date()).toLocaleDateString();"}]},{"type":"carousel","className":"h-full clear-card-mb rounded-md","options":[{"image":"https:\/\/cn.bing.com\/th?id=OHR.Springequinox2024_ZH-CN5647214924_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","href":"https:\/\/cn.bing.com\/th?id=OHR.Springequinox2024_ZH-CN5647214924_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","title":"\u7c89\u5ae9\u7684\u6625\u65e5\u7f8e\u666f"},{"image":"https:\/\/cn.bing.com\/th?id=OHR.AlmondBloom_ZH-CN9441550492_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","href":"https:\/\/cn.bing.com\/th?id=OHR.AlmondBloom_ZH-CN9441550492_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","title":"\u6625\u65e5\u79c1\u8bed"},{"image":"https:\/\/cn.bing.com\/th?id=OHR.ElephantRock_ZH-CN9293300383_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","href":"https:\/\/cn.bing.com\/th?id=OHR.ElephantRock_ZH-CN9293300383_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","title":"\u6e29\u67d4\u7684\u201c\u6c99\u4e18\u5de8\u4eba\u201d"},{"image":"https:\/\/cn.bing.com\/th?id=OHR.StFiniansBay_ZH-CN8655586052_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","href":"https:\/\/cn.bing.com\/th?id=OHR.StFiniansBay_ZH-CN8655586052_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","title":"\u4eca\u5929\uff0c\u8ba9\u6211\u4eec\u7a7f\u7eff\u8863\u88f3\u5427\uff01"},{"image":"https:\/\/cn.bing.com\/th?id=OHR.BambooPanda_ZH-CN8455481760_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","href":"https:\/\/cn.bing.com\/th?id=OHR.BambooPanda_ZH-CN8455481760_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","title":"\u88ab\u7af9\u5b50\u5305\u56f4\u4e86"},{"image":"https:\/\/cn.bing.com\/th?id=OHR.AnzaBorregoBloom_ZH-CN8284458835_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","href":"https:\/\/cn.bing.com\/th?id=OHR.AnzaBorregoBloom_ZH-CN8284458835_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","title":"\u4e00\u62b9\u6625\u8272"},{"image":"https:\/\/cn.bing.com\/th?id=OHR.AyutthayaTree_ZH-CN8075870220_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","href":"https:\/\/cn.bing.com\/th?id=OHR.AyutthayaTree_ZH-CN8075870220_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp","title":"\u4e00\u4e2a\u03c0"}],"thumbMode":"cover","animation":"slide"}],"direction":"column"}]}]}}
🟠404失败
修改于 2024-03-20 13:07:55
上一页
icon 搜索
下一页
更新用户
Built with