// 订单类型定义
export interface OrderItem {
  productId: string;
  productName: string;
  quantity: number;
  price: number;
}

export interface ShippingAddress {
  street: string;
  city: string;
  country: string;
  zipCode: string;
}

export interface Order {
  id: string;
  customerId: string;
  customerName: string;
  items: OrderItem[];
  totalAmount: number;
  status: 'pending' | 'processing' | 'shipped' | 'completed' | 'cancelled';
  paymentMethod: 'credit_card' | 'paypal' | 'bank_transfer';
  shippingAddress: ShippingAddress;
  createdAt: Date;
  updatedAt: Date;
}
