package com.tykj.dev.device.user.base.req;

import com.tykj.dev.device.user.subject.entity.User;
import com.tykj.dev.misc.base.BeanHelper;
import io.swagger.annotations.ApiModelProperty;
import org.modelmapper.ModelMapper;

/**
 * @author zjm
 * @version 1.0.0
 * @ClassName NewUser.java
 * @Description 用户新增
 * @createTime 2020年08月11日 10:49:00
 */
public class NewUser {

    @ApiModelProperty(value = "真实名称", name = "name", example = "12321L")
    private String name;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", name = "mPassWord", example = "12321L")
    private String password;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", name = "userName", example = "12321L")
    private String username;

    /**
     * 移动电话
     */
    @ApiModelProperty(value = "移动电话", name = "mobile", example = "12321L")
    private String mobile;

    /**
     * 机座
     */
    @ApiModelProperty(value = "机座", name = "telphone", example = "12321L")
    private String telphone;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱", name = "email", example = "12321L")
    private String email;

    /**
     * 真传
     */
    @ApiModelProperty(value = "真传", name = "fax", example = "12321L")
    private String fax;

    /**
     * 身份证
     */
    @ApiModelProperty(value = "身份证", name = "idCard", example = "12321L")
    private String idCard;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别", name = "sex", example = "12321L")
    private Integer sex;

    /**
     * 用户单位id
     */
    @ApiModelProperty(value = "用户单位", name = "unitsId", example = "12321L")
    private Integer unitsId;

//
//    private Integer trainStatus;
//
//    private String

    private String auditUserId;

    public User toDo() {
        ModelMapper mapper = BeanHelper.getUserMapper();
        return mapper.map(this, User.class);
    }

}
