package com.skr.mdm.bean.dto;

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.Builder;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

/**
 * @author nfq
 * @date 2023-03-01 16:39
 */
@Data
@Builder
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ContentStyle(horizontalAlignment = HorizontalAlignment.LEFT)
@ColumnWidth(20)
public class UserExportDTO {

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

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

    /**
     * 部门全路径 如 a/b/c
     */
    @ExcelProperty(value = "部门")
    private String department;

    @ExcelProperty(value = "设备数")
    private Integer userDeviceCount;

    /**
     * 多个用”、“隔开
     */
    @ExcelProperty(value = "设备名称")
    private String equipmentName;

}
