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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package com.example.entity ;
// 角色用户父类
public class Account {
// 用户ID
private Integer id ;
// 用户名
private String username ;
// 用户姓名
private String name ;
// 密码
private String password ;
// 角色标识( ADMIN、BUSINESS、USER等)
private String role ;
// 新密码(用于修改密码功能)
private String newPassword ;
// 用户头像URL
private String avatar ;
// 登录令牌
private String token ;
// 获取用户ID
public Integer getId ( ) {
return id ;
}
// 设置用户ID
public void setId ( Integer id ) {
this . id = id ;
}
// 获取用户名
public String getUsername ( ) {
return username ;
}
// 设置用户名
public void setUsername ( String username ) {
this . username = username ;
}
// 获取用户姓名
public String getName ( ) {
return name ;
}
// 设置用户姓名
public void setName ( String name ) {
this . name = name ;
}
// 获取密码
public String getPassword ( ) {
return password ;
}
// 设置密码
public void setPassword ( String password ) {
this . password = password ;
}
// 获取角色标识
public String getRole ( ) {
return role ;
}
// 设置角色标识
public void setRole ( String role ) {
this . role = role ;
}
// 获取新密码
public String getNewPassword ( ) {
return newPassword ;
}
// 设置新密码
public void setNewPassword ( String newPassword ) {
this . newPassword = newPassword ;
}
// 获取用户头像
public String getAvatar ( ) {
return avatar ;
}
// 设置用户头像
public void setAvatar ( String avatar ) {
this . avatar = avatar ;
}
// 获取登录令牌
public String getToken ( ) {
return token ;
}
// 设置登录令牌
public void setToken ( String token ) {
this . token = token ;
}
}