package com.zjty.tynotes.pas.entity.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.zjty.tynotes.pas.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author gwj
 * @create 2020/4/24 9:33
 * @des 导入excel模板的实体类
 */
@Data
@AllArgsConstructor
public class ImportUserExcel {

    @Excel(name = "姓名*")
    private String name;

    @Excel(name = "性别*",replace = {"男_0","女_1"})
    private Integer gender;

    @Excel(name = "手机号*")
    private String phone;

    public ImportUserExcel(User user) {
        this.name = user.getUsername();
        this.phone = user.getPhone1();
    }
}
