interface customerVO {
    isMyCustomer: string | number;
    isDelete: number;
    customerForm: string | number;
    customerName: string;
    customerTypeDictValue: string;
    customerLevelName: string;
    customerSourceName: string;
    customerStatusName: string;
    customerTypeName: string;
    ownerByName: string;
    lastFollowUpTime: string;
    resourceType: number | string;
    id: number | string;
    continent: string;
    country: string;
    hasGarbageCustomer: boolean;
}
export interface EmailsVO {
    attachmentNum: number;
    followUpId: string | number;
    recipientBcc: string;
    attachments: any;
    emailAddress: string;

    emailPassword: string;

    smtpServer: string;

    useDefault: Number | boolean;

    senderNickName: string;

    receiveServer: string;

    imapServer: string;

    popServer: string;

    smtpPort: string;

    receivePort: string;

    pullDay: string;

    receiveSsl: Number | boolean;

    smtpSsl: Number | boolean;

    protocolType?: string;

    recipientCc: string;

    fileSize: string;

    emailSize: string;

    replyMsgId: number | null
    /**
     * 主键id
     */
    id: string | number;

    /**
     * 绑定的邮件
     */
    smtpPopId: string | number;

    /**
     * msg_uid
     */
    msgUid: string | number;

    /**
     * 主题
     */
    subject: string;

    /**
     * 发件人邮箱
     */
    from: string;

    /**
     * 发件人邮箱
     */
    fromName: string;

    /**
     * 收件人邮箱
     */
    recipient: string;

    /**
     * 收件人邮箱
     */
    recipientName: string;

    /**
     * folder
     */
    folder: string;

    /**
     * 邮件内容
     */
    content: string;

    /**
     * 收件时间
     */
    sentDate: string;

    /**
     * 发件时间
     */
    recipientDate: string;

    /**
     * 是否已读：0未读，1已读
     */
    isRead: number;
    recipientRead: number;

    /**
     * 所属人
     */
    ownerBy: number;

    /**
     * 是否删除：0未删除，1已删除
     */
    isDelete: number;

    /**
     * 是否启用:1:启用,0:不启用
     */
    enabled: number;
    /**
     * 是否星标
     */
    isStar: number;
    /**
     * 是否垃圾箱
     */
    isTrash: number;

    /**
     * 显示顺序
     */
    sort: number;

    createTime: string;
    customerId: number | string;
    customerName: string;
    lastFollowUpTime: string;
    customerls:customerVO[];
    customerVO: customerVO;
    /**
     * 发送状态
     */
    status: number | string;
    followStatus:number;
    inOutMark:number | string;
    type:number | string;
    resourceType:number | string;
    mailId:number | string;
    recipientls:any;
    liaisonNames:any;
    resourceTypeName:any;
    resourceName:any;
    inOutMarkName: string;
}

export interface EmailsForm {
    emailAddress?: string;

    emailPassword?: string;

    smtpServer?: string;

    useDefault?: Number | boolean;

    senderNickName?: string;

    receiveServer?: string;

    imapServer?: string;

    popServer?: string;

    smtpPort?: string;

    receivePort?: string;

    pullDay?: string;

    receiveSsl?: Number | boolean;

    smtpSsl?: Number | boolean;

    protocolType?: string;

    /**
     * 主键id
     */
    id?: string | number;

    /**
     * 绑定的邮件
     */
    smtpPopId?: string | number;

    /**
     * msg_uid
     */
    msgUid?: string | number;

    /**
     * 主题
     */
    subject?: string;

    /**
     * 发件人邮箱
     */
    from?: string;

    /**
     * 发件人邮箱
     */
    fromName?: string;

    /**
     * 收件人邮箱
     */
    recipient?: string;

    /**
     * 收件人邮箱
     */
    recipientName?: string;

    /**
     * folder
     */
    folder?: string;

    /**
     * 邮件内容
     */
    content?: string;

    /**
     * 收件时间
     */
    sentDate?: string;

    /**
     * 发件时间
     */
    recipientDate?: string;

    /**
     * 是否删除：0未读，1已读
     */
    isRead?: number;

    /**
     * 所属人
     */
    ownerBy?: number;

    /**
     * 是否删除：0未删除，1已删除
     */
    isDelete?: number;

    /**
     * 是否启用:1:启用,0:不启用
     */
    enabled?: number;

    /**
     * 显示顺序
     */
    sort?: number;

}

export interface EmailsQuery  {
    folderId?: string | number;
    followUpState?: number;
    blurry?: string;
    boxCode?: string;
    customerType?: number | string;
    /**
     * 绑定的邮件
     */
    smtpPopId?: string | number;

    /**
     * msg_uid
     */
    msgUid?: string | number;

    /**
     * 主题
     */
    subject?: string;

    /**
     * 发件人邮箱
     */
    from?: string;

    /**
     * 发件人邮箱
     */
    fromName?: string;

    /**
     * 收件人邮箱
     */
    recipient?: string;

    /**
     * 收件人邮箱
     */
    recipientName?: string;

    /**
     * folder
     */
    folder?: string;

    /**
     * 邮件内容
     */
    content?: string;

    /**
     * 收件时间
     */
    sentDate?: string;

    /**
     * 发件时间
     */
    recipientDate?: string;

    /**
     * 是否删除：0未读，1已读
     */
    isRead?: number;

    /**
     * 所属人
     */
    ownerBy?: number;

    /**
     * 是否删除：0未删除，1已删除
     */
    isDelete?: number;

    /**
     * 是否启用:1:启用,0:不启用
     */
    enabled?: number;

    /**
     * 显示顺序
     */
    sort?: number;

    /**
     * 日期范围参数
     */
    params?: any;

    isStar?: any;

    isTrash?: any;

    bindCustomer?: number;

    readStatu?: number;

    systemMail?: number;


    fileExt?: string;
    // 只取客户的最后一封邮箱
    latestMail?: string | number;
}



