package com.fs.qw.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fs.common.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class QwAccountListVO implements Serializable {

    @Excel(name = "id")
    private Long id;

    @Excel(name = "账号")
    private String account;

    private String avatar;

    @Excel(name = "企微UserId")
    private Long qwUserId;

    @Excel(name = "企微昵称")
    private String nickName;

    @Excel(name = "企微组织名称")
    private String corpName;

    private Long companyId;
    private Long companyUserId;

    @Excel(name = "设备id")
    private String deviceId;

    /** 上线时间 */
    @Excel(name = "最近上线时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date onlineTime;

    /** 下线时间 */
    @Excel(name = "最近下线时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date offlineTime;

    /** 下线类型 */
    @Excel(name = "最近下线类型",dictType = "qw_offline_type")
    private Integer offlineType;

    @Excel(name = "是否在线",dictType = "qw_login_status")
    private Integer authCheck; //账号在线标记

    @Excel(name = "是否审核",dictType = "common_audit")
    private Integer isAudit;

    private Integer availableDevice;

    @Excel(name = "所属公司")
    private String companyName;
    @Excel(name = "所属员工")
    private String companyUserName;

    /** 创建时间 */
    @Excel(name = "账号创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "备注")
    private String remark;
}
