import type { MenuItem } from '../types.uts'

export const menuList: MenuItem[] = [
  {
    id: 'home',
    title: '首页',
    icon: '/static/homepage.svg',
    path: '/pages/mall/admin/homePage/index',
    groups: []
  },
  {
    id: 'user',
    title: '用户',
    icon: '/static/user.svg',
    path: '/pages/mall/admin/user-management',
    groups: [
      {
        title: '用户管理',
        children: [
          { id: 'user-list', title: '用户列表', path: '/pages/mall/admin/user-management' },
          { id: 'user-add', title: '添加用户', path: '/pages/mall/admin/user-management?action=add' },
          { id: 'user-statistics', title: '用户统计 ', path: '/pages/mall/admin/user-statistics' },
        ]
      }
    ]
  },
  {
    id: 'order',
    title: '订单',
    icon: '/static/order.svg',
    path: '/pages/mall/admin/order-management',
    groups: [
      {
        title: '订单管理',
        children: [
          { id: 'order-list', title: '订单列表', path: '/pages/mall/admin/order-management' }
        ]
      }
    ]
  },
  {
    id: 'product',
    title: '商品',
    icon: '/static/shopping.svg',
    path: '/pages/mall/admin/product-management',
    groups: [
      {
        title: '商品管理',
        children: [
          { id: 'product-list', title: '商品列表', path: '/pages/mall/admin/product-management' },
          { id: 'product-add', title: '添加商品', path: '/pages/mall/admin/product-management?action=add' }
        ]
      }
    ]
  },
  {
    id: 'marketing',
    title: '营销',
    icon: '/static/finance.svg',
    path: '/pages/mall/admin/marketing-management',
    groups: [
      {
        title: '优惠券活动',
        children: [
          { id: 'coupon-list', title: '优惠券列表', path: '/pages/mall/admin/marketing/coupon/list' }
          { id: 'coupon-receive', title: '领取情况', path: '/pages/mall/admin/marketing/coupon/receive' }

        ]
      },
      {
        title: '积分',
        children: [
          { id: 'points', title: '积分管理', path: '/pages/mall/admin/marketing/points/index' }
        ]
      },
      {
        title: '签到',
        children: [
          { id: 'rule', title: '签到规则', path: '/pages/mall/admin/marketing/signin/rule' }
          { id: 'record', title: '记录', path: '/pages/mall/admin/marketing/signin/record' }

        ]
      }
    ]
  },
  {
    id: 'system',
    title: '设置',
    icon: '/static/setting.svg',
    path: '/pages/mall/admin/system-settings',
    groups: [
      {
        title: '系统设置',
        children: [
          { id: 'basic', title: '基本设置', path: '/pages/mall/admin/system-settings' },
          { id: 'security', title: '安全设置', path: '/pages/mall/admin/system-settings?tab=security' }
        ]
      }
    ]
  }
]
