/** 商品列表项（对应后端 ProductListVO） */
export interface ProductItem {
  id: number
  name: string
  categoryId: number
  categoryName: string
  brand: string
  mainImage: string
  minPrice: number
  maxPrice: number
  totalStock: number
  sales: number
  status: number
  isHot: number
  isNew: number
  createTime: string
}

/** 商品 SKU VO（对应后端 ProductSkuVO） */
export interface ProductSku {
  id: number
  productId: number
  skuName: string
  image: string
  price: number
  stock: number
  sales: number
  weight: number
  sort: number
}

/** 商品详情（对应后端 ProductDetailVO） */
export interface ProductDetail {
  id: number
  name: string
  categoryId: number
  categoryName: string
  brand: string
  mainImage: string
  subImages: string[]
  detail: string         // 富文本 HTML
  originPrice: number
  minPrice: number
  sales: number
  viewCount: number
  status: number
  isHot: number
  isNew: number
  skuList: ProductSku[]
  createTime: string
}
