// 企业模块类型定义

// 企业信息
export interface CompanyInfo {
  id: number
  companyName: string
  creditCode: string
  legalPerson: string
  address: string
  phone: string
  email: string
  status: string
}

// 收货地址
export interface Address {
  id: number
  name: string
  phone: string
  province: string
  city: string
  district: string
  detail: string
  isDefault: boolean
}

// 发票抬头
export interface InvoiceTitle {
  id: number
  type: 'personal' | 'company'
  title: string
  taxNo?: string
  bankName?: string
  bankAccount?: string
  address?: string
  phone?: string
  isDefault: boolean
}

// 商品
export interface Product {
  id: number
  name: string
  image: string
  price: number
  originalPrice?: number
  spec: string
  category: string
  brand: string
  stock: number
  sales: number
}

// 收藏商品
export interface CollectionItem {
  id: number
  productId: number
  product: Product
  createTime: string
}

// 浏览足迹
export interface FootprintItem {
  id: number
  productId: number
  product: Product
  viewTime: string
}
