IotUser.java 3.4 KB
package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 产品对象 iot_user
 * 
 * @author 钟来
 * @date 2022-08-26
 */
@ApiModel("产品")
public class IotUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 创建时间 */
    @ApiModelProperty("创建时间")
    private Integer create_time;

    /** 加密类型 */
    @ApiModelProperty("加密类型")
    private String encryption_type;

    /** 主键id */
    @ApiModelProperty("主键id")
    private Integer id;

    /** 开启加密(0不开启,1开启) */
    @ApiModelProperty("开启加密(0不开启,1开启)")
    private Integer open_encryption;

    /** 密码 */
    @ApiModelProperty("密码")
    private String password;

    /** 角色id */
    @ApiModelProperty("角色id")
    private Integer role_id;

    /** 盐 */
    @ApiModelProperty("盐")
    private String salt;

    /** 是否使用(0否,1是) */
    @ApiModelProperty("是否使用(0否,1是)")
    private Integer used;

    /** 用户名 */
    @ApiModelProperty("用户名")
    private String username;

    public void setCreate_time(Integer create_time) 
    {
        this.create_time = create_time;
    }

    public Integer getCreate_time() 
    {
        return create_time;
    }
    public void setEncryption_type(String encryption_type) 
    {
        this.encryption_type = encryption_type;
    }

    public String getEncryption_type() 
    {
        return encryption_type;
    }
    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setOpen_encryption(Integer open_encryption) 
    {
        this.open_encryption = open_encryption;
    }

    public Integer getOpen_encryption() 
    {
        return open_encryption;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setRole_id(Integer role_id) 
    {
        this.role_id = role_id;
    }

    public Integer getRole_id() 
    {
        return role_id;
    }
    public void setSalt(String salt) 
    {
        this.salt = salt;
    }

    public String getSalt() 
    {
        return salt;
    }
    public void setUsed(Integer used) 
    {
        this.used = used;
    }

    public Integer getUsed() 
    {
        return used;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("create_time", getCreate_time())
            .append("encryption_type", getEncryption_type())
            .append("id", getId())
            .append("open_encryption", getOpen_encryption())
            .append("password", getPassword())
            .append("role_id", getRole_id())
            .append("salt", getSalt())
            .append("used", getUsed())
            .append("username", getUsername())
            .toString();
    }
}