import type { RouteRecordRaw } from 'vue-router';

/** 文件职责：商品管理模块静态路由。 */
const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:package',
      order: 20,
      title: '商品管理',
    },
    name: 'Product',
    path: '/product',
    children: [
      {
        name: 'ProductList',
        path: '/product/list',
        component: () => import('#/views/product/list/index.vue'),
        meta: {
          icon: 'lucide:list',
          title: '商品列表',
        },
      },
      {
        name: 'ProductCategory',
        path: '/product/category',
        component: () => import('#/views/product/category/index.vue'),
        meta: {
          icon: 'lucide:folders',
          title: '分类管理',
        },
      },
      {
        name: 'ProductSpecs',
        path: '/product/specs',
        component: () => import('#/views/product/specs/index.vue'),
        meta: {
          icon: 'lucide:sliders-horizontal',
          title: '规格做法',
        },
      },
      {
        name: 'ProductAddons',
        path: '/product/addons',
        component: () => import('#/views/product/addons/index.vue'),
        meta: {
          icon: 'lucide:plus-square',
          title: '加料管理',
        },
      },
      {
        name: 'ProductLabels',
        path: '/product/labels',
        component: () => import('#/views/product/labels/index.vue'),
        meta: {
          icon: 'lucide:tags',
          title: '商品标签',
        },
      },
      {
        name: 'ProductSchedule',
        path: '/product/schedule',
        component: () => import('#/views/product/schedule/index.vue'),
        meta: {
          icon: 'lucide:calendar-clock',
          title: '时段供应',
        },
      },
      {
        name: 'ProductBatchTools',
        path: '/product/batch',
        component: () => import('#/views/product/batch/index.vue'),
        meta: {
          icon: 'lucide:wand-sparkles',
          title: '批量工具',
        },
      },
      {
        name: 'ProductDetail',
        path: '/product/detail',
        component: () => import('#/views/product/detail/index.vue'),
        meta: {
          hideInMenu: true,
          title: '商品详情',
        },
      },
    ],
  },
];

export default routes;
