package com.njcn.user.pojo.dto.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2022年04月06日 16:13
 */
@Data
public class UserExcel implements Serializable {

    private String id;

    @Excel(name = "用户名", width = 20)
    private String name;

    @Excel(name = "登录名", width = 20)
    private String loginName;

    @Excel(name = "角色", width = 20)
    private String role;

    @Excel(name = "部门", width = 20)
    private String deptName;

    @Excel(name = "手机", width = 20)
    private String phone;

    @Excel(name = "注册时间", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    private LocalDateTime registerTime;

    @Excel(name = "最后登录时间", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    private LocalDateTime loginTime;

    @Excel(name = "用户类型", replace = {"临时用户_0", "正式用户_1"}, width = 20)
    private Integer casualUser;

    @Excel(name = "状态", replace = {"注销_0", "正常_1", "锁定_2", "待审核_3", "休眠_4", "密码过期_5"}, width = 20)
    private Integer state;

}
