import type { FormRules } from 'element-plus'
/**
 * 实体类
 * 只是一个类型说明
 */
export default interface wantListType {
  wantCode: string
  title: string
  mainImageUrl: string
  priceMin: number
  priceMax: number
  description: string
  skuImageUrl: string
  subscribes: Array<SellerWantSpuSubsribeVo>
}
export interface SellerWantSpuSubsribeVo {
  sellerName: string
  subscribeTime: string
}

export interface wantDetailType {
  wantCode: string
  title: string
  mainImageUrl: string
  priceMin: number
  priceMax: number
  refLink: string
  acceptSimilar: string
  description: string
  images: Array<wantDetailImagesType>,
  sellPlatforms: Array<string>
  productTypes: Array<string>
  extraAttrs: Array<string>
  findSpuCode: string
  findSpuLink: string
}
export interface wantDetailImagesType {
  filename: string
  url: string
  width: number
  height: number
  size: number
  sortValue: number
  hash: string
}

export interface myWantListType {
  applyTime: any
  wantCode: string
  status: string
  title: string
  mainImageUrl: string
  priceMin: number
  priceMax: number
  refLink: string
  acceptSimilar: string
  finishTime: string
  findSpuCode: string
  findSpuLink: string
  rejectReason: string
  findFailReason: string
}
let priceMin: any = 0
let priceMax: any = 0
export function getPriceMin(price: any) {
  priceMin = price
}
export function getPriceMax(price: any) {
  priceMax = price
}


