/**
 * Mock数据 - 用户认证
 */

// 用户信息Mock数据
export const mockUserInfo = {
  id: 1,
  username: 'admin',
  nickname: '超级管理员',
  avatar: '',
  phone: '13800138000',
  email: 'admin@haha.com',
  role: 'admin',
  roleName: '系统管理员',
  permissions: ['order:view', 'order:edit', 'device:view', 'device:edit', 'shop:view', 'shop:edit', 'product:view', 'inventory:view'],
  lastLoginTime: '2026-02-14 18:30:00',
  createdAt: '2025-01-01 00:00:00'
};

// 登录响应Mock数据
export const mockLoginResponse = {
  token: 'mock_admin_token_' + Date.now(),
  userInfo: mockUserInfo
};

// 菜单权限Mock数据
export const mockMenuList = [
  {
    id: 1,
    name: '工作台',
    icon: 'home',
    path: '/pages/index/index'
  },
  {
    id: 2,
    name: '订单管理',
    icon: 'order',
    path: '/pages/orders/list',
    children: [
      { id: 21, name: '订单列表', path: '/pages/orders/list' },
      { id: 22, name: '异常订单', path: '/pages/orders/abnormal' },
      { id: 23, name: '售后管理', path: '/pages/orders/after-sale' }
    ]
  },
  {
    id: 3,
    name: '设备管理',
    icon: 'device',
    path: '/pages/device/list'
  },
  {
    id: 4,
    name: '门店管理',
    icon: 'shop',
    path: '/pages/shop/list'
  },
  {
    id: 5,
    name: '商品管理',
    icon: 'product',
    path: '/pages/products/list'
  },
  {
    id: 6,
    name: '库存管理',
    icon: 'inventory',
    path: '/pages/inventory/query'
  }
];
