import { SysTagVO } from '@/api/archieves/tag/types';

export interface UsrCustomerVO {
  id: string | number;
  name: string;
  phone: string;
  avatar: number;
  avatarUrl: string;
  gender: number;
  birthday: string;
  idCard: string;
  areaId: number;
  areaName: string;
  stationId: number;
  stationName: string;
  address: string;
  emergencyContact: string;
  emergencyPhone: string;
  petCount: number;
  memberLevel: number;
  status: number;
  remark: string;
  createTime: string;
  tags: SysTagVO[];
  tenantId: string | number;
  tenantName: string;
}

export interface UsrCustomerForm extends BaseEntity {
  id?: string | number;
  name?: string;
  phone?: string;
  avatar?: number;
  gender?: number;
  birthday?: string;
  idCard?: string;
  areaId?: number;
  stationId?: number;
  address?: string;
  emergencyContact?: string;
  emergencyPhone?: string;
  memberLevel?: number;
  status?: number;
  remark?: string;
  tagIds?: (string | number)[];
  tenantId?: string | number;
}

export interface UsrCustomerQuery extends PageQuery {
  keyword?: string;
  areaId?: number;
  stationId?: number;
  status?: number;
}

export interface CustomerOnOrderVO {
  id: number;
  name: string;
  phoneNumber: string;
  regionCode: string;
  address: string;
}

export interface CustomerOnOrderQuery extends PageQuery {
  content?: string;
  tenantId?: string | number;
  stationId?: number;
}

/**
 * 用户备注表单
 */
export interface UsrCustomerRemarkForm {
  /** 用户ID */
  id: string | number;
  /** 备注内容 */
  content: string;
}
