/** 购物车项（对应后端 CartItemVO） */
export interface CartItem {
  id: number
  productId: number
  productName: string
  productImage: string
  skuId: number
  skuName: string
  skuImage: string
  price: number
  quantity: number
  subtotal: number
  stock: number
  selected: number
  productStatus: number
}

/** 购物车（对应后端 CartVO） */
export interface CartVO {
  items: CartItem[]
  totalCount: number
  selectedCount: number
  totalAmount: number
  selectedAmount: number
  allSelected: number
}

/** 加入购物车请求 */
export interface CartAddReq {
  productId: number
  skuId: number
  quantity: number
}

/** 修改购物车数量请求 */
export interface CartUpdateReq {
  skuId: number
  quantity: number
}
