// 车辆型号枚举到中文的映射
export const vehicleTypeMap = {
  'bus': '大巴',
  'minibus': '中巴',
  'car': '小车',
  'business': '商务车'
} as const;

// 获取车辆型号的中文显示
export const getVehicleTypeText = (vehicleType: string) => {
  return vehicleTypeMap[vehicleType as keyof typeof vehicleTypeMap] || vehicleType || '未知车型';
};

// 出行方式枚举到中文的映射
export const travelModeMap = {
  'carpool': '拼车',
  'charter': '包车'
} as const;

// 获取出行方式的中文显示
export const getTravelModeText = (travelMode: string) => {
  return travelModeMap[travelMode as keyof typeof travelModeMap] || travelMode || '未知出行方式';
};

// 路线接口
export interface Route {
  id: number
  price: number
  availableSeats: number
  departureTime: string
  vehicleModel: string
  startLocation: string
  endLocation: string
  duration: string
  refundPolicy: string
  type?: string
}

// 路线查询参数接口
export interface RouteQueryParams {
  activityId?: number
  startPoint?: string
  endPoint?: string
  date?: Date
  sortBy?: 'price' | 'departureTime'
  sortOrder?: 'asc' | 'desc'
}