import { AppRouteRecord } from '@/types/router'

/**
 * 租户管理相关路由模块
 */
const tenantRoutes: AppRouteRecord = {
  path: '/tenant',
  name: 'Tenant',
  component: '/index/index',
  redirect: '/tenant/subscription',
  meta: {
    title: 'menus.tenant.title',
    icon: 'ri:building-2-line',
    order: 3
  },
  children: [
    {
      path: 'subscription',
      name: 'TenantSubscription',
      component: '/tenant/subscription',
      meta: {
        title: 'menus.tenant.subscription',
        icon: 'ri:calendar-check-line'
      }
    },
    {
      path: 'billing',
      name: 'TenantBilling',
      component: '/tenant/billing',
      meta: {
        title: 'menus.tenant.billing',
        icon: 'ri:bill-line'
      }
    },
    {
      path: 'billing/statistics',
      name: 'TenantBillingStatistics',
      component: '/tenant/billing/statistics',
      meta: {
        title: 'menus.tenant.billingStatistics',
        icon: 'ri:bar-chart-box-line',
        isHideMenu: false
      }
    }
  ]
}

export default tenantRoutes
