第三节 电商接口定义

亮子 2025-05-25 12:00:43 232 0 0 0

/auth/code

fetch("http://localhost:8013/auth/code", {
  "headers": {
    "accept": "application/json, text/plain, */*",
    "accept-language": "zh-CN,zh;q=0.9",
    "sec-ch-ua": "\"Chromium\";v=\"136\", \"Google Chrome\";v=\"136\", \"Not.A/Brand\";v=\"99\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "Referer": "http://localhost:8013/login?redirect=%2Fdashboard",
    "Referrer-Policy": "strict-origin-when-cross-origin"
  },
  "body": null,
  "method": "GET"
});
{
    "uuid": "code-key91d34a82662f4ec1b7d9df15bf6f2ce1", 
    "img": "data:image/png;base64,iVBORw0KGgoA"
}

/auth/login

fetch("http://localhost:8013/auth/login", {
  "headers": {
    "accept": "application/json, text/plain, */*",
    "accept-language": "zh-CN,zh;q=0.9",
    "content-type": "application/json",
    "sec-ch-ua": "\"Chromium\";v=\"136\", \"Google Chrome\";v=\"136\", \"Not.A/Brand\";v=\"99\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "Referer": "http://localhost:8013/login?redirect=%2Fdashboard",
    "Referrer-Policy": "strict-origin-when-cross-origin"
  },
  "body": "{\"username\":\"admin\",\"password\":\"UuBCgweRNcs5PzxClJfNmRCwu0kpomRsMTmby8oAo1/PzrtlzoHFfs5uvcC+Mjxxlt5yMhtNmWjGrvUj6TRDmg==\",\"code\":\"35\",\"uuid\":\"code-key72ad3b537e8d4152a417213c95cf4110\"}",
  "method": "POST"
});

{
    "user": {
        "id": 1, 
        "username": "admin", 
        "nickName": "管理员", 
        "sex": "男", 
        "avatar": "20200705181403641316.png", 
        "email": "yshop@qq.com", 
        "phone": "18888888888", 
        "dept": "研发部1", 
        "job": "全栈开发2", 
        "enabled": true, 
        "createTime": 1534986716000, 
        "roles": [
            "logError:detail", 
            "YXSYSTEMGROUPDATA_ALL", 
            "YXSYSTEMUSERLEVEL_SELECT", 
            "YXSTORECATEGORY_SELECT", 
            "YXSYSTEMGROUPDATA_CREATE", 
            "job:edit", 
            "YXUSERBILL_ALL", 
            "YXSTORECOMBINATION_DELETE", 
            "dict:add", 
            "dept:list", 
            "YXEXPRESS_SELECT", 
            "yxWechatTemplate:add", 
            "YXSTORECOMBINATION_EDIT", 
            "yxStoreProductRule:add", 
            "menu:list", 
            "storage:del", 
            "YXSYSTEMCONFIG_SELECT", 
            "YxWechatMenu_CREATE", 
            "YXSTOREORDER_EDIT", 
            "cate:list", 
            "yxStoreCustomer:add", 
            "YXSTORECOUPON_DELETE", 
            "YXSTORECOUPONISSUE_DELETE", 
            "yxUserRecharge:list", 
            "YXSTORESECKILL_DELETE", 
            "YXSTORECOUPONUSER_SELECT", 
            "yxStoreCustomer:list", 
            "dict:edit", 
            "YXSTORECATEGORY_ALL", 
            "dept:del", 
            "YXSTOREPRODUCT_DELETE", 
            "YXSTORESECKILL_EDIT", 
            "YxWechatMenu_SELECT", 
            "YXUSEREXTRACT_SELECT", 
            "YXEXPRESS_DELETE", 
            "YXSTORECOMBINATION_SELECT", 
            "YXSTORECATEGORY_DELETE", 
            "yxShippingTemplates:add", 
            "YXARTICLE_SELECT", 
            "storage:list", 
            "YXSTOREPRODUCT_CREATE", 
            "YXSTOREPINK_SELECT", 
            "timing:add", 
            "yxStoreAfterSales:add", 
            "job:add", 
            "YXSYSTEMCONFIG_ALL", 
            "yxStoreProductRelation:list", 
            "YXSTORECOUPON_CREATE", 
            "roles:add", 
            "user:add", 
            "timing:edit", 
            "yxUserRecharge:del", 
            "YXSYSTEMUSERLEVEL_CREATE", 
            "YXUSER_EDIT", 
            "YXWECHATREPLY_ALL", 
            "yxWechatTemplate:list", 
            "roles:edit", 
            "user:edit", 
            "YXSTORECATEGORY_EDIT", 
            "yxStoreAfterSales:list", 
            "YXUSER_SELECT", 
            "dept:edit", 
            "storage:add", 
            "YXUSEREXTRACT_EDIT", 
            "dept:add", 
            "yxStoreCustomer:del", 
            "YXSYSTEMCONFIG_CREATE", 
            "menu:del", 
            "YXSTORECOUPON_EDIT", 
            "dict:del", 
            "YXSTOREPRODUCTREPLY_DELETE", 
            "dict:list", 
            "YXSTORECATEGORY_CREATE", 
            "yxStoreCustomer:edit", 
            "timing:list", 
            "YXSTOREORDER_SELECT", 
            "YXSYSTEMGROUPDATA_DELETE", 
            "YXSYSTEMGROUPDATA_SELECT", 
            "YXSYSTEMUSERTASK_EDIT", 
            "YXSTORESECKILL_SELECT", 
            "logError:list", 
            "menu:edit", 
            "YXSTORECOUPONISSUE_SELECT", 
            "yxWechatTemplate:del", 
            "YXEXPRESS_CREATE", 
            "YXSYSTEMUSERLEVEL_DELETE", 
            "YXSYSTEMUSERLEVEL_EDIT", 
            "user:list", 
            "storage:edit", 
            "roles:del", 
            "admin", 
            "YXUSERBILL_SELECT", 
            "YXSTOREPRODUCT_EDIT", 
            "yxStoreAfterSales:edit", 
            "user:del", 
            "yxStoreAfterSales:del", 
            "YXSTOREPRODUCT_SELECT", 
            "YXARTICLE_ALL", 
            "YXSYSTEMUSERTASK_SELECT", 
            "YXSTORECOUPON_SELECT", 
            "YXSTORECOUPONISSUE_EDIT", 
            "yxWechatTemplate:edit", 
            "yxShippingTemplates:del", 
            "log:list", 
            "YXSTOREPRODUCTREPLY_SELECT", 
            "roles:list", 
            "YXEXPRESS_EDIT", 
            "menu:add", 
            "job:del", 
            "YxWechatMenu_ALL", 
            "YXSYSTEMGROUPDATA_EDIT", 
            "yxStoreProductRule:del", 
            "timing:del", 
            "yxAppVersion:list"
        ]
    }, 
    "token": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2MTYyMTg2M30.cEykJBKJmF7nvjBF3DazCxrXudLswsMycDiZ4ctRWT53NxyTZqvXZiU47BFYuXg55WEzLWkAwwdEXYct0qGBFA"
}
SELECT r.id,r.create_time,r.data_scope,r.`level`,r.`name`,r.permission,r.remark 
            FROM sys_role r LEFT OUTER JOIN sys_users_roles u1 ON r.id = u1.role_id 
            LEFT OUTER JOIN sys_user u2 ON u1.user_id = u2.id 
            WHERE u2.id = 1
                  
                  
select m.* from sys_menu m LEFT JOIN sys_roles_menus t on m.id= t.menu_id LEFT JOIN sys_role r on r.id = t.role_id where r.id = 1 and m.is_del=0

select m.* from sys_dept m LEFT JOIN sys_roles_depts t on m.id= t.dept_id LEFT JOIN sys_role r on r.id = t.role_id where r.id = 1

/api/menus/build

fetch("http://localhost:8013/api/menus/build", {
  "headers": {
    "accept": "application/json, text/plain, */*",
    "accept-language": "zh-CN,zh;q=0.9",
    "authorization": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2MTYyMTg2M30.cEykJBKJmF7nvjBF3DazCxrXudLswsMycDiZ4ctRWT53NxyTZqvXZiU47BFYuXg55WEzLWkAwwdEXYct0qGBFA",
    "sec-ch-ua": "\"Chromium\";v=\"136\", \"Google Chrome\";v=\"136\", \"Not.A/Brand\";v=\"99\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "cookie": "YSHOP-TOEKN=Bearer%20eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2MTYyMTg2M30.cEykJBKJmF7nvjBF3DazCxrXudLswsMycDiZ4ctRWT53NxyTZqvXZiU47BFYuXg55WEzLWkAwwdEXYct0qGBFA",
    "Referer": "http://localhost:8013/login?redirect=%2Fdashboard",
    "Referrer-Policy": "strict-origin-when-cross-origin"
  },
  "body": null,
  "method": "GET"
});
[
  {
    "name": "终端装修",
    "path": "/theme",
    "hidden": false,
    "redirect": "noredirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "终端装修",
      "icon": "theme",
      "noCache": true
    },
    "children": [
      {
        "name": "Container",
        "path": "container",
        "hidden": false,
        "component": "theme/container/index",
        "meta": {
          "title": "商城装修",
          "icon": "theme",
          "noCache": true
        }
      }
    ]
  },
  {
    "name": "商品管理",
    "path": "/shop",
    "hidden": false,
    "redirect": "noredirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "商品管理",
      "icon": "shop",
      "noCache": false
    },
    "children": [
      {
        "name": "GoodsAdd",
        "path": "goodsAdd",
        "hidden": true,
        "component": "shop/goods/form",
        "meta": {
          "title": "商品新增",
          "icon": "anq",
          "noCache": true
        }
      },
      {
        "name": "GoodsEdit",
        "path": "goodsEdit/:id",
        "hidden": true,
        "component": "shop/goods/form",
        "meta": {
          "title": "商品修改",
          "icon": "anq",
          "noCache": true
        }
      },
      {
        "name": "Cate",
        "path": "cate",
        "hidden": false,
        "component": "shop/cate/index",
        "meta": {
          "title": "商品分类",
          "icon": "icon",
          "noCache": true
        }
      },
      {
        "name": "Goods",
        "path": "goods",
        "hidden": false,
        "component": "shop/goods/tab",
        "meta": {
          "title": "管理商品",
          "icon": "develop",
          "noCache": false
        }
      },
      {
        "name": "ProductRule",
        "path": "productRule",
        "hidden": false,
        "component": "shop/storeProductRule/index",
        "meta": {
          "title": "商品规格",
          "icon": "mnt",
          "noCache": true
        }
      },
      {
        "name": "ShippingTemplates",
        "path": "shippingTemplates",
        "hidden": false,
        "component": "shop/shippingTemplates/index",
        "meta": {
          "title": "运费模板",
          "icon": "exit-fullscreen",
          "noCache": true
        }
      },
      {
        "name": "Viewlog",
        "path": "viewlog",
        "hidden": false,
        "component": "monitor/log/mlog",
        "meta": {
          "title": "浏览记录",
          "icon": "log",
          "noCache": true
        }
      },
      {
        "name": "ProductRelation",
        "path": "productRelation",
        "hidden": false,
        "component": "shop/collect/index",
        "meta": {
          "title": "商品收藏",
          "icon": "icon",
          "noCache": true
        }
      },
      {
        "name": "FootRelation",
        "path": "footRelation",
        "hidden": false,
        "component": "shop/foot/index",
        "meta": {
          "title": "用户足迹",
          "icon": "list",
          "noCache": true
        }
      }
    ]
  },
  {
    "name": "会员管理",
    "path": "/member",
    "hidden": false,
    "redirect": "noredirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "会员管理",
      "icon": "peoples",
      "noCache": true
    },
    "children": [
      {
        "name": "Member",
        "path": "member",
        "hidden": false,
        "component": "shop/user/index",
        "meta": {
          "title": "会员",
          "icon": "peoples",
          "noCache": true
        }
      },
      {
        "name": "Userlevel",
        "path": "userlevel",
        "hidden": false,
        "component": "shop/userlevel/index",
        "meta": {
          "title": "会员等级",
          "icon": "dengji",
          "noCache": true
        }
      },
      {
        "name": "Usertask",
        "path": "usertask",
        "hidden": false,
        "component": "shop/usertask/index",
        "meta": {
          "title": "等级任务",
          "icon": "task manege",
          "noCache": true
        }
      },
      {
        "name": "Bill",
        "path": "bill",
        "hidden": false,
        "component": "shop/user/bill",
        "meta": {
          "title": "用户账单",
          "icon": "list",
          "noCache": true
        }
      },
      {
        "name": "OnlineMember",
        "path": "onlinet",
        "hidden": false,
        "component": "monitor/online/indext",
        "meta": {
          "title": "在线会员",
          "icon": "Steve-Jobs",
          "noCache": true
        }
      }
    ]
  },
  {
    "name": "订单管理",
    "path": "/order",
    "hidden": false,
    "redirect": "noredirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "订单管理",
      "icon": "lock",
      "noCache": true
    },
    "children": [
      {
        "name": "Order",
        "path": "order",
        "hidden": false,
        "component": "shop/order/index",
        "meta": {
          "title": "订单",
          "icon": "order",
          "noCache": true
        }
      },
      {
        "name": "Reply",
        "path": "reply",
        "hidden": false,
        "component": "shop/reply/index",
        "meta": {
          "title": "评论管理",
          "icon": "comment",
          "noCache": true
        }
      },
      {
        "name": "Express",
        "path": "express",
        "hidden": false,
        "component": "shop/express/index",
        "meta": {
          "title": "物流快递",
          "icon": "express",
          "noCache": true
        }
      },
      {
        "name": "AfterSeals",
        "path": "afterSeals",
        "hidden": false,
        "component": "shop/afterSeals/index",
        "meta": {
          "title": "售后",
          "icon": "order",
          "noCache": true
        }
      },
      {
        "name": "Detail",
        "path": "detail/:id",
        "hidden": true,
        "component": "shop/order/detail",
        "meta": {
          "title": "订单详情",
          "icon": "sqlMonitor",
          "noCache": true
        }
      }
    ]
  },
  {
    "name": "电子券管理",
    "path": "/syscoupon",
    "hidden": false,
    "redirect": "noredirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "电子券管理",
      "icon": "coupon",
      "noCache": true
    },
    "children": [
      {
        "name": "Coupon",
        "path": "coupon",
        "hidden": false,
        "component": "activity/coupon/index",
        "meta": {
          "title": "优惠券制作",
          "icon": "coupon",
          "noCache": true
        }
      },
      {
        "name": "Couponissue",
        "path": "couponissue",
        "hidden": false,
        "component": "activity/couponissue/index",
        "meta": {
          "title": "已发布优惠券",
          "icon": "coupon2",
          "noCache": true
        }
      },
      {
        "name": "Couponuser",
        "path": "couponuser",
        "hidden": false,
        "component": "activity/storecouponuser/index",
        "meta": {
          "title": "优惠券领取记录",
          "icon": "log",
          "noCache": true
        }
      }
    ]
  },
  {
    "name": "营销管理",
    "path": "/activity",
    "hidden": false,
    "redirect": "noredirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "营销管理",
      "icon": "yingxiao",
      "noCache": true
    },
    "children": [
      {
        "name": "CombinationEdit",
        "path": "combinationEdit/:id",
        "hidden": true,
        "component": "activity/combination/form",
        "meta": {
          "title": "拼团商品修改",
          "icon": "anq",
          "noCache": true
        }
      },
      {
        "name": "SecKillEdit",
        "path": "secKillEdit/:id",
        "hidden": true,
        "component": "activity/seckill/form",
        "meta": {
          "title": "秒杀商品修改",
          "icon": "anq",
          "noCache": true
        }
      },
      {
        "name": "Combination",
        "path": "combination",
        "hidden": false,
        "component": "activity/combination/index",
        "meta": {
          "title": "拼团产品",
          "icon": "peoples",
          "noCache": true
        }
      },
      {
        "name": "Pink",
        "path": "pink",
        "hidden": false,
        "component": "activity/combinlist/index",
        "meta": {
          "title": "拼团列表",
          "icon": "list",
          "noCache": true
        }
      },
      {
        "name": "Seckill",
        "path": "seckill",
        "hidden": false,
        "component": "activity/seckill/index",
        "meta": {
          "title": "秒杀产品",
          "icon": "seckill",
          "noCache": true
        }
      },
      {
        "name": "Seckillconfig",
        "path": "seckillconfig",
        "hidden": false,
        "component": "shop/set/seckill",
        "meta": {
          "title": "秒杀配置",
          "icon": "configure",
          "noCache": true
        }
      },
      {
        "name": "SecKillAdd",
        "path": "secKillAdd",
        "hidden": true,
        "component": "activity/seckill/form",
        "meta": {
          "title": "秒杀商品添加",
          "icon": null,
          "noCache": true
        }
      },
      {
        "name": "CombinationAdd",
        "path": "combinationAdd",
        "hidden": true,
        "component": "activity/combination/form",
        "meta": {
          "title": "拼团商品添加",
          "icon": null,
          "noCache": true
        }
      }
    ]
  },
  {
    "name": "财务管理",
    "path": "/price",
    "hidden": false,
    "redirect": "noredirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "财务管理",
      "icon": "price",
      "noCache": true
    },
    "children": [
      {
        "name": "Extract",
        "path": "extract",
        "hidden": false,
        "component": "activity/extract/index",
        "meta": {
          "title": "提现管理",
          "icon": "tixian",
          "noCache": true
        }
      },
      {
        "name": "Recharge",
        "path": "recharge",
        "hidden": false,
        "component": "shop/recharge/index",
        "meta": {
          "title": "充值管理",
          "icon": "rec",
          "noCache": true
        }
      },
      {
        "name": "Rechargeset",
        "path": "rechargeset",
        "hidden": false,
        "component": "shop/set/recharge",
        "meta": {
          "title": "充值金额配置",
          "icon": "money",
          "noCache": true
        }
      }
    ]
  },
  {
    "name": "point",
    "path": "/syspoints",
    "hidden": false,
    "redirect": "noredirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "积分管理",
      "icon": "Sign",
      "noCache": true
    },
    "children": [
      {
        "name": "PointConfig",
        "path": "pointConfig",
        "hidden": false,
        "component": "wechat/config/point",
        "meta": {
          "title": "积分配置",
          "icon": "configure",
          "noCache": true
        }
      },
      {
        "name": "Pobill",
        "path": "pobill",
        "hidden": false,
        "component": "shop/user/pobill",
        "meta": {
          "title": "积分记录",
          "icon": "log",
          "noCache": true
        }
      },
      {
        "name": "Signday",
        "path": "signday",
        "hidden": false,
        "component": "shop/set/sign",
        "meta": {
          "title": "签到天数配置",
          "icon": "sign2",
          "noCache": true
        }
      }
    ]
  },
  {
    "name": "微信管理",
    "path": "/wechat",
    "hidden": false,
    "redirect": "noredirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "微信管理",
      "icon": "weixin",
      "noCache": true
    },
    "children": [
      {
        "name": "WeMenu",
        "path": "wemenu",
        "hidden": false,
        "component": "wechat/menu/index",
        "meta": {
          "title": "微信菜单",
          "icon": "menu",
          "noCache": true
        }
      },
      {
        "name": "WeArticle",
        "path": "wearticle",
        "hidden": false,
        "component": "wechat/article/index",
        "meta": {
          "title": "图文管理",
          "icon": "article",
          "noCache": true
        }
      },
      {
        "name": "Wereply",
        "path": "wereply",
        "hidden": false,
        "component": "wechat/reply/index",
        "meta": {
          "title": "自动回复",
          "icon": "reply",
          "noCache": true
        }
      },
      {
        "name": "WeConfig",
        "path": "weconfig",
        "hidden": false,
        "component": "wechat/config/index",
        "meta": {
          "title": "公众号配置",
          "icon": "configure",
          "noCache": true
        }
      },
      {
        "name": "Wxpayconfig",
        "path": "wxpayconfig",
        "hidden": false,
        "component": "wechat/config/pay",
        "meta": {
          "title": "微信支付配置",
          "icon": "wxpay",
          "noCache": true
        }
      },
      {
        "name": "Template",
        "path": "template",
        "hidden": false,
        "component": "wechat/template/index",
        "meta": {
          "title": "微信模板消息",
          "icon": "anq",
          "noCache": true
        }
      },
      {
        "name": "Wxapp",
        "path": "wxapp",
        "hidden": false,
        "component": "wechat/config/wxapp",
        "meta": {
          "title": "小程序配置",
          "icon": "configure",
          "noCache": true
        }
      },
      {
        "name": "Artadd",
        "path": "artadd",
        "hidden": true,
        "component": "wechat/article/form",
        "meta": {
          "title": "图文添加",
          "icon": "article",
          "noCache": true
        }
      },
      {
        "name": "Editadd",
        "path": "artadd/:id",
        "hidden": true,
        "component": "wechat/article/form",
        "meta": {
          "title": "图文编辑",
          "icon": "alipay",
          "noCache": true
        }
      }
    ]
  },
  {
    "name": "商城配置",
    "path": "/set",
    "hidden": false,
    "redirect": "noredirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "商城配置",
      "icon": "configure",
      "noCache": true
    },
    "children": [
      {
        "name": "msgInfo",
        "path": "storeCustomer",
        "hidden": false,
        "component": "shop/customer/index",
        "meta": {
          "title": "订单消息管理",
          "icon": "peoples",
          "noCache": true
        }
      },
      {
        "name": "HomeBanner",
        "path": "homeBanner",
        "hidden": true,
        "component": "shop/set/index",
        "meta": {
          "title": "首页幻灯片",
          "icon": "banner",
          "noCache": true
        }
      },
      {
        "name": "HomeMenus",
        "path": "homeMenus",
        "hidden": true,
        "component": "shop/set/menu",
        "meta": {
          "title": "首页导航按钮",
          "icon": "button",
          "noCache": true
        }
      },
      {
        "name": "Roll",
        "path": "roll",
        "hidden": true,
        "component": "shop/set/roll",
        "meta": {
          "title": "首页滚动新闻",
          "icon": "news",
          "noCache": true
        }
      },
      {
        "name": "Hot",
        "path": "hot",
        "hidden": false,
        "component": "shop/set/hot",
        "meta": {
          "title": "热门搜索",
          "icon": "search",
          "noCache": true
        }
      },
      {
        "name": "UserMenu",
        "path": "userMenu",
        "hidden": false,
        "component": "shop/set/usermenu",
        "meta": {
          "title": "个人中心菜单",
          "icon": "menu",
          "noCache": true
        }
      },
      {
        "name": "Shopconfig",
        "path": "shopconfig",
        "hidden": false,
        "component": "wechat/config/shop",
        "meta": {
          "title": "商城系统配置",
          "icon": "shop",
          "noCache": true
        }
      },
      {
        "name": "Smsconfig",
        "path": "smsconfig",
        "hidden": false,
        "component": "wechat/config/sms",
        "meta": {
          "title": "阿里云短信",
          "icon": "sys-tools",
          "noCache": true
        }
      },
      {
        "name": "Expressconfig",
        "path": "expressconfig",
        "hidden": false,
        "component": "wechat/config/express",
        "meta": {
          "title": "快递鸟配置",
          "icon": "news",
          "noCache": true
        }
      },
      {
        "name": "App版本",
        "path": "appVersion",
        "hidden": false,
        "component": "shop/appVersion/index",
        "meta": {
          "title": "App版本",
          "icon": "app",
          "noCache": true
        }
      }
    ]
  },
  {
    "name": "系统管理",
    "path": "/system",
    "hidden": false,
    "redirect": "noredirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "系统管理",
      "icon": "system",
      "noCache": true
    },
    "children": [
      {
        "name": "User",
        "path": "user",
        "hidden": false,
        "component": "system/user/index",
        "meta": {
          "title": "用户管理",
          "icon": "peoples",
          "noCache": true
        }
      },
      {
        "name": "Role",
        "path": "role",
        "hidden": false,
        "component": "system/role/index",
        "meta": {
          "title": "角色管理",
          "icon": "role",
          "noCache": true
        }
      },
      {
        "name": "Menu",
        "path": "menu",
        "hidden": false,
        "component": "system/menu/index",
        "meta": {
          "title": "菜单管理",
          "icon": "menu",
          "noCache": true
        }
      },
      {
        "name": "Dept",
        "path": "dept",
        "hidden": false,
        "component": "system/dept/index",
        "meta": {
          "title": "部门管理",
          "icon": "dept",
          "noCache": true
        }
      },
      {
        "name": "Job",
        "path": "job",
        "hidden": false,
        "component": "system/job/index",
        "meta": {
          "title": "岗位管理",
          "icon": "Steve-Jobs",
          "noCache": true
        }
      },
      {
        "name": "Dict",
        "path": "dict",
        "hidden": false,
        "component": "system/dict/index",
        "meta": {
          "title": "字典管理",
          "icon": "dictionary",
          "noCache": true
        }
      }
    ]
  },
  {
    "name": "系统监控",
    "path": "/monitor",
    "hidden": false,
    "redirect": "noredirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "系统监控",
      "icon": "monitor",
      "noCache": true
    },
    "children": [
      {
        "name": "OnlineUser",
        "path": "online",
        "hidden": false,
        "component": "monitor/online/index",
        "meta": {
          "title": "在线用户",
          "icon": "Steve-Jobs",
          "noCache": true
        }
      },
      {
        "name": "Log",
        "path": "logs",
        "hidden": false,
        "component": "monitor/log/index",
        "meta": {
          "title": "操作日志",
          "icon": "log",
          "noCache": false
        }
      },
      {
        "name": "ErrorLog",
        "path": "errorLog",
        "hidden": false,
        "component": "monitor/log/errorLog",
        "meta": {
          "title": "异常日志",
          "icon": "error",
          "noCache": true
        }
      },
      {
        "name": "Sql",
        "path": "druid",
        "hidden": false,
        "component": "monitor/sql/index",
        "meta": {
          "title": "SQL监控",
          "icon": "sqlMonitor",
          "noCache": true
        }
      }
    ]
  },
  {
    "name": "系统工具",
    "path": "/sys-tools",
    "hidden": false,
    "redirect": "noredirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "系统工具",
      "icon": "sys-tools",
      "noCache": true
    },
    "children": [
      {
        "name": "Timing",
        "path": "timing",
        "hidden": false,
        "component": "system/timing/index",
        "meta": {
          "title": "定时任务",
          "icon": "timing",
          "noCache": true
        }
      },
      {
        "name": "GeneratorIndex",
        "path": "generator",
        "hidden": false,
        "component": "generator/index",
        "meta": {
          "title": "代码生成",
          "icon": "dev",
          "noCache": true
        }
      },
      {
        "name": "Storage",
        "path": "storage",
        "hidden": false,
        "component": "tools/storage/index",
        "meta": {
          "title": "存储管理",
          "icon": "qiniu",
          "noCache": true
        }
      },
      {
        "name": "Email",
        "path": "email",
        "hidden": false,
        "component": "tools/email/index",
        "meta": {
          "title": "邮件工具",
          "icon": "email",
          "noCache": true
        }
      },
      {
        "name": "AliPay",
        "path": "aliPay",
        "hidden": false,
        "component": "tools/aliPay/index",
        "meta": {
          "title": "支付宝工具",
          "icon": "alipay",
          "noCache": true
        }
      },
      {
        "name": "Swagger",
        "path": "swagger2",
        "hidden": false,
        "component": "tools/swagger/index",
        "meta": {
          "title": "后台接口文档",
          "icon": "swagger",
          "noCache": true
        }
      },
      {
        "name": "GeneratorConfig",
        "path": "generator/config/:tableName",
        "hidden": true,
        "component": "generator/config",
        "meta": {
          "title": "生成配置",
          "icon": "dev",
          "noCache": false
        }
      },
      {
        "name": "GeneratorConfig",
        "path": "generator/config/:tableName",
        "hidden": true,
        "component": "generator/config",
        "meta": {
          "title": "生成配置",
          "icon": "dev",
          "noCache": false
        }
      },
      {
        "name": "Preview",
        "path": "generator/preview/:tableName",
        "hidden": true,
        "component": "generator/preview",
        "meta": {
          "title": "生成预览",
          "icon": "java",
          "noCache": false
        }
      }
    ]
  }
]

/api/visits

fetch("http://localhost:8013/api/visits", {
  "headers": {
    "accept": "application/json, text/plain, */*",
    "accept-language": "zh-CN,zh;q=0.9",
    "authorization": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2MTc4Mzk4NH0.PvOBGN9JSshdtcYkxNVT-8C9JRVRX8LPQNa7eZcgDVuMG1bTC__q1r0PGSngNre8yr5LXVHFCQd6gJrSt-L_lg",
    "sec-ch-ua": "\"Chromium\";v=\"136\", \"Google Chrome\";v=\"136\", \"Not.A/Brand\";v=\"99\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin"
  },
  "referrer": "http://localhost:8013/dashboard",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": null,
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});

``` ## /api/data/count

fetch(“http://localhost:8013/api/data/count", {
”headers“: {
”accept“: ”application/json, text/plain, /“,
”accept-language“: ”zh-CN,zh;q=0.9“,
”authorization“: ”Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2MjU0NDQ5NX0.KUpyZRMTkKirg-MmtcdTOeTJJqRONRpgm0f94fjHZKzGG547h49SLKHLxm7ZX7tAU6BgW69iuN2gE2DWKi5GQg“,
”sec-ch-ua“: ”"Chromium";v="136", "Google Chrome";v="136", "Not.A/Brand";v="99"“,
”sec-ch-ua-mobile“: ”?0“,
”sec-ch-ua-platform“: ”"Windows"“,
”sec-fetch-dest“: ”empty“,
”sec-fetch-mode“: ”cors“,
”sec-fetch-site“: ”same-origin“,
”cookie“: ”YSHOP-TOEKN=Bearer%20eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2MjU0NDQ5NX0.KUpyZRMTkKirg-MmtcdTOeTJJqRONRpgm0f94fjHZKzGG547h49SLKHLxm7ZX7tAU6BgW69iuN2gE2DWKi5GQg“,
”Referer“: ”http://localhost:8013/dashboard",
“Referrer-Policy”: “strict-origin-when-cross-origin”
},
“body”: null,
“method”: “GET”
});



``` { "todayPrice": 0, "todayCount": 0, "proPrice": 0, "proCount": 0, "monthPrice": 131.02, "monthCount": 7, "lastWeekCount": 0, "lastWeekPrice": 0, "userCount": 2, "orderCount": 8, "priceCount": 132.02, "goodsCount": 8 }

/api/data/chart

fetch("http://localhost:8013/api/data/chart", {
  "headers": {
    "accept": "application/json, text/plain, */*",
    "accept-language": "zh-CN,zh;q=0.9",
    "authorization": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2MjU0NDQ5NX0.KUpyZRMTkKirg-MmtcdTOeTJJqRONRpgm0f94fjHZKzGG547h49SLKHLxm7ZX7tAU6BgW69iuN2gE2DWKi5GQg",
    "sec-ch-ua": "\"Chromium\";v=\"136\", \"Google Chrome\";v=\"136\", \"Not.A/Brand\";v=\"99\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "cookie": "YSHOP-TOEKN=Bearer%20eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2MjU0NDQ5NX0.KUpyZRMTkKirg-MmtcdTOeTJJqRONRpgm0f94fjHZKzGG547h49SLKHLxm7ZX7tAU6BgW69iuN2gE2DWKi5GQg",
    "Referer": "http://localhost:8013/dashboard",
    "Referrer-Policy": "strict-origin-when-cross-origin"
  },
  "body": null,
  "method": "GET"
});
{
    "chart": [
        {
            "num": 10,
            "time": "05-08"
        },
        {
            "num": 5.01,
            "time": "05-12"
        },
        {
            "num": 116.01,
            "time": "05-13"
        }
    ],
    "chartT": [
        {
            "num": 1,
            "time": "05-08"
        },
        {
            "num": 2,
            "time": "05-12"
        },
        {
            "num": 4,
            "time": "05-13"
        }
    ]
}

/api/yxStoreOrder/orderCount

fetch("http://localhost:8013/api/yxStoreOrder/orderCount", {
  "headers": {
    "accept": "application/json, text/plain, */*",
    "accept-language": "zh-CN,zh;q=0.9",
    "authorization": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2MjU0NDQ5NX0.KUpyZRMTkKirg-MmtcdTOeTJJqRONRpgm0f94fjHZKzGG547h49SLKHLxm7ZX7tAU6BgW69iuN2gE2DWKi5GQg",
    "sec-ch-ua": "\"Chromium\";v=\"136\", \"Google Chrome\";v=\"136\", \"Not.A/Brand\";v=\"99\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "cookie": "YSHOP-TOEKN=Bearer%20eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2MjU0NDQ5NX0.KUpyZRMTkKirg-MmtcdTOeTJJqRONRpgm0f94fjHZKzGG547h49SLKHLxm7ZX7tAU6BgW69iuN2gE2DWKi5GQg",
    "Referer": "http://localhost:8013/dashboard",
    "Referrer-Policy": "strict-origin-when-cross-origin"
  },
  "body": null,
  "method": "GET"
});
{
    "column": [
        "工具",
        "电视"
    ],
    "orderCountDatas": [
        {
            "name": "工具",
            "value": 5
        },
        {
            "name": "电视",
            "value": 6
        }
    ]
}