import type { PageParam } from '@/api';
import {Company} from "@/api/system/company/model";

/**
 * 产品
 */
export interface Product {
  productId?: number;
  name?: string;
  code?: string;
  type?: string;
  logo?: string;
  money?: number;
  salesInitial?: number;
  salesActual?: number;
  stockTotal?: number;
  image?: string;
  backgroundColor?: string;
  backgroundImage?: string;
  backgroundGif?: string;
  buyUrl?: string;
  adminUrl?: string;
  downUrl?: string;
  source?: string;
  content?: string;
  virtualViews?: string;
  actualViews?: string;
  userId?: string;
  companyId?: number;
  nickname?: string;
  username?: string;
  userAvatar?: string;
  shopId?: string;
  files?: string;
  sortNumber?: number;
  comments?: string;
  serverUrl?: string;
  status?: number;
  callbackUrl?: string;
  createTime?: string;
  updateTime?: string;
  company?: Company;
  tenantId?: number;
}

/**
 * 产品搜索条件
 */
export interface ProductParam extends PageParam {
  title?: string;
  code?: string;
  productId?: number;
  categoryId?: string;
  status?: string;
  sortNumber?: string;
  createTime?: string;
  username?: string;
  nickname?: string;
  // 商户编号
  merchantCode?: string;
}
