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.

66 lines
1.5 KiB

11 months ago
package com.cya.entity;
// Admin实体代表管理员
public class Admin {
private int adminId; // 管理员的唯一标识符
private String userName; // 登录用户名
private String password; // 登录密码
private String name; // 管理员姓名
private String sex; // 管理员性别
private String tel; // 管理员电话号码
// 获取adminId的getter和setter方法
public int getAdminId() {
return adminId;
}
public void setAdminId(int adminId) {
this.adminId = adminId;
}
// 获取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;
}
// 获取name的getter和setter方法
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
// 获取sex的getter和setter方法
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
// 获取tel的getter和setter方法
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
// 返回Admin对象的字符串表示形式的方法
@Override
public String toString() {
return "Admin [adminId=" + adminId + ", userName=" + userName + ", password=" + password + ", name=" + name
+ ", sex=" + sex + ", tel=" + tel + "]";
}
}