diff --git a/Login.java b/Login.java new file mode 100644 index 0000000..760a78f --- /dev/null +++ b/Login.java @@ -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 + "]"; + } +} \ No newline at end of file