import type { PageParam } from '@/api/index';

/**
 * 用户商品浏览记录
 */
export interface ShopGoodsBrowse {
  id?: number;
  userId?: number;
  goodsId?: number;
  tenantId?: number;
  merchantId?: number;
  /** 浏览次数 */
  visitCount?: number;
  /** 最后浏览时间 */
  lastVisitTime?: string;
  /** 浏览来源：home/category/search/share/detail */
  browseSource?: string;
  createTime?: string;
  updateTime?: string;
  // ========== 关联商品快照字段 ==========
  goodsName?: string;
  goodsImage?: string;
  price?: string;
  salePrice?: string;
}

/**
 * 浏览记录查询参数
 */
export interface ShopGoodsBrowseParam extends PageParam {
  id?: number;
  userId?: number;
  goodsId?: number;
  merchantId?: number;
  tenantId?: number;
  browseSource?: string;
  startTime?: string;
  endTime?: string;
}
