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: 'ProductDetail',
        path: '/product/detail',
        component: () => import('#/views/product/detail/index.vue'),
        meta: {
          hideInMenu: true,
          title: '商品详情',
        },
      },
    ],
  },
];

export default routes;
