/**
 * 管理后台本地数据
 */

// 系统初始化数据
const initData = {
  code: '200',
  msg: '获取成功',
  data: {
    name: 'BandhuBuy',
    logo: '/static/images/logo.png',
    domainurl: '',
    filesystem: 'aliyun',
    version: '1.0.0',
    sheep_version: 'v1.4.1',
    is_pro: true,
  },
};

// 登录配置数据
const loginConfigData = {
  code: '200',
  msg: '获取成功',
  data: {
    background: '/static/images/loginBg.png',
    mode: 'none',
  },
};

// 菜单权限数据 - 更新为新的数据结构
const menuRulesData = {
  code: '200',
  message: 'SUCCESS',
  voice: null,
  data: [
    {
      id: 223,
      name: '商城管理',
      label: '商城管理',
      logo: 'ant-design:appstore-filled',
      type: '1',
      composingKey: 'shop.admin',
      url: '',
      seq: 0,
      parentId: '',
      createUserId: '',
      updateUserId: 'sys',
      createTime: '2025-07-23T03:41:25.000+0000',
      updateTime: '2025-07-23T05:43:19.000+0000',
      hasRelevance: null,
      isAction: '0',
      children: [
        {
          id: 224,
          name: '首页',
          label: '首页',
          logo: 'sa-home_line',
          type: '1',
          composingKey: 'shop.admin.dashboard',
          url: '',
          seq: 0,
          parentId: '223',
          createUserId: '',
          updateUserId: 'admin',
          createTime: '2025-07-23T03:41:26.000+0000',
          updateTime: '2025-07-25T02:40:20.000+0000',
          hasRelevance: null,
          isAction: '0',
          children: [
            {
              id: 225,
              name: '数据概览',
              label: '数据概览',
              logo: 'sa-home_line',
              type: '2',
              composingKey: 'shop.admin.dashboard',
              url: '',
              seq: 0,
              parentId: '224',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:26.000+0000',
              updateTime: '2025-07-25T02:41:03.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
          ],
        },
        {
          id: 226,
          name: '商品',
          label: '商品',
          logo: 'sa-bag_line',
          type: '1',
          composingKey: 'shop.admin.goods',
          url: '',
          seq: 1,
          parentId: '223',
          createUserId: '',
          updateUserId: 'admin',
          createTime: '2025-07-23T03:41:27.000+0000',
          updateTime: '2025-07-25T02:45:02.000+0000',
          hasRelevance: null,
          isAction: '0',
          children: [
            {
              id: 227,
              name: '商品库',
              label: '商品库',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.goods.goods',
              url: '',
              seq: -1,
              parentId: '226',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:28.000+0000',
              updateTime: '2025-07-25T02:46:15.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
            {
              id: 228,
              name: '商品分类',
              label: '商品分类',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.goods.category',
              url: '',
              seq: 0,
              parentId: '226',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:28.000+0000',
              updateTime: '2025-07-25T02:46:19.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
          ],
        },
        {
          id: 229,
          name: '订单',
          label: '订单',
          logo: 'sa-order_line',
          type: '1',
          composingKey: 'shop.admin.order',
          url: '',
          seq: 2,
          parentId: '223',
          createUserId: '',
          updateUserId: 'admin',
          createTime: '2025-07-23T03:41:29.000+0000',
          updateTime: '2025-07-25T02:45:05.000+0000',
          hasRelevance: null,
          isAction: '0',
          children: [
            {
              id: 230,
              name: '订单管理',
              label: '订单管理',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.order.list',
              url: '',
              seq: 0,
              parentId: '229',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:29.000+0000',
              updateTime: '2025-07-25T02:46:27.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
            {
              id: 232,
              name: '订单设置',
              label: '订单设置',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.order.setting',
              url: '',
              seq: 1,
              parentId: '229',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:30.000+0000',
              updateTime: '2025-07-25T02:46:30.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
            {
              id: 231,
              name: '售后管理',
              label: '售后管理',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.order.aftersale',
              url: '',
              seq: 2,
              parentId: '229',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:30.000+0000',
              updateTime: '2025-07-25T02:46:33.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
          ],
        },
        {
          id: 233,
          name: '用户',
          label: '用户',
          logo: 'sa-user',
          type: '1',
          composingKey: 'shop.admin.user',
          url: '',
          seq: 3,
          parentId: '223',
          createUserId: '',
          updateUserId: 'admin',
          createTime: '2025-07-23T03:41:31.000+0000',
          updateTime: '2025-07-25T02:45:09.000+0000',
          hasRelevance: null,
          isAction: '0',
          children: [
            {
              id: 234,
              name: '用户列表',
              label: '用户列表',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.user.list',
              url: '',
              seq: 0,
              parentId: '233',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:31.000+0000',
              updateTime: '2025-07-25T02:46:37.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
            {
              id: 235,
              name: '标签管理',
              label: '标签管理',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.user.tag',
              url: '',
              seq: 1,
              parentId: '233',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:32.000+0000',
              updateTime: '2025-07-25T02:46:40.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
            {
              id: 236,
              name: '会员等级',
              label: '会员等级',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.user.level',
              url: '',
              seq: 2,
              parentId: '233',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:32.000+0000',
              updateTime: '2025-07-25T02:46:43.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
          ],
        },
        {
          id: 237,
          name: '营销',
          label: '营销',
          logo: 'sa-marketing_line',
          type: '1',
          composingKey: 'shop.admin.marketing',
          url: '',
          seq: 4,
          parentId: '223',
          createUserId: '',
          updateUserId: 'admin',
          createTime: '2025-07-23T03:41:33.000+0000',
          updateTime: '2025-07-25T02:45:13.000+0000',
          hasRelevance: null,
          isAction: '0',
          children: [
            {
              id: 238,
              name: '拼团',
              label: '拼团',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.marketing.group',
              url: '',
              seq: 0,
              parentId: '237',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:33.000+0000',
              updateTime: '2025-07-25T02:46:47.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
          ],
        },
        {
          id: 239,
          name: '内容',
          label: '内容',
          logo: 'sa-message_line',
          type: '1',
          composingKey: 'shop.admin.content',
          url: '',
          seq: 5,
          parentId: '223',
          createUserId: '',
          updateUserId: 'admin',
          createTime: '2025-07-23T03:41:34.000+0000',
          updateTime: '2025-07-25T02:45:16.000+0000',
          hasRelevance: null,
          isAction: '0',
          children: [
            {
              id: 240,
              name: '消息推送',
              label: '消息推送',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.content.notification',
              url: '',
              seq: 0,
              parentId: '239',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:35.000+0000',
              updateTime: '2025-07-25T02:46:52.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
            {
              id: 241,
              name: '短信',
              label: '短信',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.content.sms',
              url: '',
              seq: 1,
              parentId: '239',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:35.000+0000',
              updateTime: '2025-07-25T02:46:55.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
            {
              id: 242,
              name: '广告位',
              label: '广告位',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.content.adv',
              url: '',
              seq: 2,
              parentId: '239',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:36.000+0000',
              updateTime: '2025-07-25T02:46:58.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
          ],
        },
        {
          id: 243,
          name: '数据',
          label: '数据',
          logo: 'sa-graph_line',
          type: '1',
          composingKey: 'shop.admin.data',
          url: '',
          seq: 6,
          parentId: '223',
          createUserId: '',
          updateUserId: 'admin',
          createTime: '2025-07-23T03:41:36.000+0000',
          updateTime: '2025-07-25T02:45:20.000+0000',
          hasRelevance: null,
          isAction: '0',
          children: [
            {
              id: 244,
              name: '数据报表',
              label: '数据报表',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.data.report',
              url: '',
              seq: 0,
              parentId: '243',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:37.000+0000',
              updateTime: '2025-07-25T02:47:02.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
          ],
        },
        {
          id: 245,
          name: '财务',
          label: '财务',
          logo: 'sa-cny_line',
          type: '1',
          composingKey: 'shop.admin.finance',
          url: '',
          seq: 7,
          parentId: '223',
          createUserId: '',
          updateUserId: 'admin',
          createTime: '2025-07-23T03:41:38.000+0000',
          updateTime: '2025-07-25T02:45:24.000+0000',
          hasRelevance: null,
          isAction: '0',
          children: [
            {
              id: 246,
              name: '充值',
              label: '充值',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.finance.recharge',
              url: '',
              seq: 0,
              parentId: '245',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:38.000+0000',
              updateTime: '2025-07-25T02:47:06.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
            {
              id: 247,
              name: '提款',
              label: '提款',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.finance.withdraw',
              url: '',
              seq: 1,
              parentId: '245',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:39.000+0000',
              updateTime: '2025-07-25T02:47:09.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
            {
              id: 248,
              name: '佣金',
              label: '佣金',
              logo: '',
              type: '2',
              composingKey: 'shop.admin.finance.commission',
              url: '',
              seq: 2,
              parentId: '245',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:39.000+0000',
              updateTime: '2025-07-25T02:47:12.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
          ],
        },
        {
          id: 249,
          name: '设置',
          label: '设置',
          logo: 'sa-config',
          type: '1',
          composingKey: 'admin.config',
          url: '',
          seq: 8,
          parentId: '223',
          createUserId: '',
          updateUserId: 'admin',
          createTime: '2025-07-23T03:41:40.000+0000',
          updateTime: '2025-07-25T02:45:27.000+0000',
          hasRelevance: null,
          isAction: '0',
          children: [
            {
              id: 250,
              name: '菜单权限',
              label: '菜单权限',
              logo: '',
              type: '2',
              composingKey: 'admin.auth.access',
              url: '',
              seq: -2,
              parentId: '249',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:40.000+0000',
              updateTime: '2025-07-25T02:47:17.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
            {
              id: 252,
              name: '人员管理',
              label: '人员管理',
              logo: '',
              type: '2',
              composingKey: 'admin.auth.admin',
              url: '',
              seq: -1,
              parentId: '249',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:41.000+0000',
              updateTime: '2025-07-25T02:47:21.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
            {
              id: 251,
              name: '角色管理',
              label: '角色管理',
              logo: '',
              type: '2',
              composingKey: 'admin.auth.role',
              url: '',
              seq: 1,
              parentId: '249',
              createUserId: '',
              updateUserId: 'admin',
              createTime: '2025-07-23T03:41:41.000+0000',
              updateTime: '2025-07-25T02:47:23.000+0000',
              hasRelevance: null,
              isAction: '0',
              children: null,
            },
          ],
        },
      ],
    },
  ],
  success: true,
  fail: false,
};
// 导出menuRulesData供其他组件使用
export { menuRulesData };

export default {
  /**
   * 系统初始化接口
   */
  init: () => initData,

  /**
   * 登录配置接口
   */
  loginConfig: () => loginConfigData,
  /**
   * 菜单权限接口
   */
  account: {
    rules: () => menuRulesData,
  },
};
