You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
1.7 KiB
83 lines
1.7 KiB
|
2 months ago
|
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;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 系统用户对象 users
|
||
|
|
*
|
||
|
|
* @author ruoyi
|
||
|
|
* @date 2026-01-14
|
||
|
|
*/
|
||
|
|
public class Users extends BaseEntity
|
||
|
|
{
|
||
|
|
private static final long serialVersionUID = 1L;
|
||
|
|
|
||
|
|
/** 主键ID */
|
||
|
|
private Long id;
|
||
|
|
|
||
|
|
/** 登录账号 */
|
||
|
|
@Excel(name = "登录账号")
|
||
|
|
private String username;
|
||
|
|
|
||
|
|
/** 密码 (建议存哈希值) */
|
||
|
|
@Excel(name = "密码 (建议存哈希值)")
|
||
|
|
private String password;
|
||
|
|
|
||
|
|
/** 权限等级: 1=管理员(L1), 2=房主(L2), 3=操作员(L3) */
|
||
|
|
@Excel(name = "权限等级: 1=管理员(L1), 2=房主(L2), 3=操作员(L3)")
|
||
|
|
private Long role;
|
||
|
|
|
||
|
|
public void setId(Long id)
|
||
|
|
{
|
||
|
|
this.id = id;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Long getId()
|
||
|
|
{
|
||
|
|
return id;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setUsername(String username)
|
||
|
|
{
|
||
|
|
this.username = username;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getUsername()
|
||
|
|
{
|
||
|
|
return username;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setPassword(String password)
|
||
|
|
{
|
||
|
|
this.password = password;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getPassword()
|
||
|
|
{
|
||
|
|
return password;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setRole(Long role)
|
||
|
|
{
|
||
|
|
this.role = role;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Long getRole()
|
||
|
|
{
|
||
|
|
return role;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public String toString() {
|
||
|
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||
|
|
.append("id", getId())
|
||
|
|
.append("username", getUsername())
|
||
|
|
.append("password", getPassword())
|
||
|
|
.append("role", getRole())
|
||
|
|
.toString();
|
||
|
|
}
|
||
|
|
}
|