/** 抢购活动商品（对应后端 SeckillProductVO） */
export interface SeckillProduct {
  id: number
  activityId: number
  productId: number
  productName: string
  productImage: string
  skuId: number
  skuName: string
  originPrice: number
  seckillPrice: number
  discount: number
  seckillStock: number
  remainStock: number
  soldPercent: number
  perLimit: number
  sort: number
  sales: number
}

/** 抢购活动（对应后端 SeckillActivityVO） */
export interface SeckillActivity {
  id: number
  name: string
  cover: string
  startTime: string
  endTime: string
  status: 0 | 1 | 2
  statusText: string
  countdownSeconds: number
  description: string
  products: SeckillProduct[]
}

/** 抢购下单请求 */
export interface SeckillBuyReq {
  activityId: number
  skuId: number
  quantity?: number
  /** 收货地址 ID（不传则后端用默认地址） */
  addressId?: number
}

/** 抢购结果（对应后端 SeckillResultVO） */
export interface SeckillResult {
  orderNo: string
  status: number
  statusText: string
  message?: string
  mainOrderId?: number | null
}
