export enum OrderStatus {
  PENDING_PAYMENT = '待支付',
  WAITING_DEPARTURE = '待出发',
  IN_PROGRESS = '行程中',
  COMPLETED = '已完成',
  CANCELLED = '已取消'
}

export enum PaymentStatus {
  PENDING = '待支付',
  PROCESSING = '支付中',
  PAID = '已支付',
  FAILED = '支付失败',
  REFUNDED = '已退款',
  CLOSED = '已关闭'
}

import { OrderResponse, OrderStats } from '../modules/orders/order.schema';

export type { OrderResponse, OrderStats };

// 订单列表响应类型
export interface OrderListResponse {
  data: OrderResponse[];
  total: number;
  page: number;
  pageSize: number;
}

// 订单统计响应类型
export interface OrderStatsResponse {
  stats: OrderStats;
}

// 订单筛选参数
export interface OrderFilterParams {
  status?: OrderStatus;
  paymentStatus?: PaymentStatus;
  search?: string;
  page?: number;
  pageSize?: number;
}