/**
 * 管理后台路由常量
 *
 * 集中管理所有路由路径，避免硬编码
 */

export const ADMIN_ROUTES = {
  // 根路径
  ROOT: '/admin',

  // 登录
  LOGIN: '/admin/login',

  // 主要页面
  DASHBOARD: '/admin/dashboard',
  USERS: '/admin/users',
  SETTINGS: '/admin/settings',
  BACKUP: '/admin/backup',
  LOGS: '/admin/logs',

  // 多租户模块
  AUTH: '/admin/auth',
  FILES: '/admin/files',
  AREAS: '/admin/areas',
  BANK_NAMES: '/admin/bank-names',

  // Allin 系统模块
  CHANNELS: '/admin/channels',
  COMPANIES: '/admin/companies',
  DISABILITIES: '/admin/disabilities',
  ORDERS: '/admin/orders',
  PLATFORMS: '/admin/platforms',
  SALARIES: '/admin/salaries',
} as const;

/**
 * 快捷操作类型
 */
export type QuickActionType =
  | 'users'
  | 'settings'
  | 'backup'
  | 'logs';

/**
 * 快捷操作对应的路由映射
 */
export const QUICK_ACTION_ROUTES: Record<QuickActionType, string> = {
  users: ADMIN_ROUTES.USERS,
  settings: ADMIN_ROUTES.SETTINGS,
  backup: ADMIN_ROUTES.BACKUP,
  logs: ADMIN_ROUTES.LOGS,
} as const;
