package com.skr.mdm.bean.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

import java.util.Date;

/**
 * @author nfq
 * @date 2023-03-02 10:14
 */
@Data
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ContentStyle(horizontalAlignment = HorizontalAlignment.LEFT)
@ColumnWidth(20)
public class EquipmentExportDTO {

    @ExcelProperty(value = "设备名称")
    private String equipmentName;

    @ExcelProperty(value = "IMEI")
    private String imei;

    @ExcelProperty(value = "OAID")
    private String oaid;

    @ExcelProperty(value = "UUID")
    private String uuid;

    @ExcelProperty(value = "用户名")
    private String userName;

    @ExcelProperty(value = "手机号")
    private String phoneNumber;

    @ExcelProperty(value = "在线状态")
    private String equipmentState;

    @ExcelProperty(value = "部门")
    private String department;

    @ExcelProperty(value = "离线时间")
    private Date offlineTime;

    @ExcelIgnore
    private Integer departmentId;
}
