From 7a3dd2d0bed02ce5d76bd4ae6dd3c5c5f684f10c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=A5=8E=E7=A8=8B?= <2205565068@qq.com> Date: Fri, 15 Dec 2023 10:59:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Login.java | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Login.java 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