// 商品列表项
export interface ProductListItem {
  id: number;
  name: string;
  mainImage: string;
  price: number;
  sales: number;
  status: number;
  categoryName: string;
}

// 商品详情
export interface ProductDetail {
  id: number;
  categoryId: number;
  categoryName: string;
  name: string;
  subtitle: string;
  mainImage: string;
  subImages: string;
  description: string;
  price: number;
  stock: number;
  sales: number;
  status: number;
  sort: number;
  createTime: string;
  updateTime: string;
  skuList: ProductSku[];
}

// 商品SKU
export interface ProductSku {
  id: number;
  productId: number;
  skuName: string;
  skuCode: string;
  price: number;
  stock: number;
  specJson: string;
}

// 商品分类
export interface ProductCategory {
  id: number;
  parentId: number;
  name: string;
  sort: number;
  icon: string;
  level: number;
  createTime: string;
  updateTime: string;
}

// 商品分页请求参数
export interface ProductPageParams {
  page: number;
  size: number;
  categoryId?: number;
  name?: string;
  status?: number;
}

// 商品分页响应数据
export interface ProductPageResponse {
  list: ProductListItem[];
  total: number;
  page: number;
  size: number;
}
