package com.jkcredit.invoice.model.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;

/**
 * @description:
 * @author: sunzhaoning
 * @create: 2019-05-28 17:44
 * @version: V1.0
 **/
@Data
@ApiModel(value = "用户实体")
public class User implements Serializable {

    private static final long serialVersionUID = -526324944915280489L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String userName;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    private String name;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    private String phone;

    /**
     * 行云返回的企业编号
     */
    @ApiModelProperty(value = "企业编号")
    private String companyNum;
    /**
     * 企业名称
     */
    @ApiModelProperty(value = "企业名称")
    private String company;

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id")
    private String roleId;

    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称")
    private String roleName;



    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    /**
     * 锁定状态 0正常 1锁定,2停用
     */
    @ApiModelProperty(value = "锁定状态")
    private Integer isLock;
}
