import type { Goods } from '../entities/goods.entity.js';
import type { GoodsCategory } from '../entities/goods-category.entity.js';

export type { Goods, GoodsCategory };

export interface RandomGoodsQuery {
  categoryId?: number;
  includeImages?: boolean;
  limit?: number;
}

export interface RandomGoodsResponse {
  goods: Goods[];
  total: number;
}

export interface GoodsWithRelations extends Goods {
  category?: GoodsCategory;
  supplier?: any; // TODO: 定义供应商类型
  merchant?: any; // TODO: 定义商户类型
  imageFile?: any; // TODO: 定义文件类型
  slideImages?: any[]; // TODO: 定义文件类型数组
}

export interface GoodsCategoryWithRelations extends GoodsCategory {
  parent?: GoodsCategory;
  children?: GoodsCategory[];
  imageFile?: any; // TODO: 定义文件类型
}