main
parent
63ea9d43f3
commit
7a3dd2d0be
@ -0,0 +1,39 @@
|
||||
package com.cya.entity;
|
||||
|
||||
// Login实体代表登录信息
|
||||
public class Login {
|
||||
|
||||
private String userName; // 登录用户名
|
||||
private String password; // 登录密码
|
||||
private String role; // 用户角色
|
||||
|
||||
// 获取userName的getter和setter方法
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
// 获取password的getter和setter方法
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
// 获取role的getter和setter方法
|
||||
public String getRole() {
|
||||
return role;
|
||||
}
|
||||
public void setRole(String role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
// 返回Login对象的字符串表示形式的方法
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Login [userName=" + userName + ", password=" + password + ", role=" + role + "]";
|
||||
}
|
||||
}
|
Loading…
Reference in new issue