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

/**
 * 客户
 */
export interface Customer {
  // 客户id
  customerId?: number;
  // 客户类型
  customerType?: string;
  // 客户来源
  customerSource?: string;
  // 客户标识
  customerCode: string;
  // 客户名称
  customerName?: string;
  // 客户全称
  customerFullName?: string;
  // 客户头像
  customerAvatar?: string;
  // 座机电话
  customerPhone?: string;
  // 手机号码
  customerMobile?: string;
  // 联系人
  customerContacts?: string;
  // 联系地址
  customerAddress?: string;
  customerProvince?: string;
  customerCity?: string;
  customerRegion?: string;
  longitude?: string;
  latitude?: string;
  // 跟进状态
  progress?: string;
  // 排序
  sortNumber?: number;
  // 备注
  comments?: string;
  // 创建时间
  createTime?: string;
  // 状态
  status?: string;
  // 用户ID
  userId?: any;
  // 发布者昵称
  nickname?: string;
}

/**
 * 客户搜索条件
 */
export interface CustomerParam extends PageParam {
  customerName?: string;
  customerCode?: string;
  customerType?: string;
  createTimeStart?: string;
  createTimeEnd?: string;
  customerCategory?: string;
  progress?: string;
  customerSource?: string;
  betweenTime?: any;
  userId?: number;
  nickname?: string;
  // 商户编号
  merchantCode?: string;
}
