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.

110 lines
2.8 KiB

This file contains ambiguous Unicode characters!

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.cn.domain; // 定义类的包名
import java.sql.Timestamp; // 导入Timestamp类用于处理日期和时间
public class Member {
// 会员ID
private Integer memberId;
// 会员用户名
private String userName;
// 会员密码
private String password;
// 注册时间
private Timestamp registerTime;
// 是否启用,通常用于表示账号是否激活或被禁用
private Integer ifUse;
// 登录时间
private Timestamp logintimes;
// 构造函数,包含所有属性
public Member(Integer memberId, String userName, String password, Timestamp registerTime, Integer ifUse,
Timestamp logintimes) {
this.memberId = memberId;
this.userName = userName;
this.password = password;
this.registerTime = registerTime;
this.ifUse = ifUse;
this.logintimes = logintimes;
}
// 构造函数不包含memberId
public Member(String userName, String password, Timestamp registerTime, Integer ifUse, Timestamp logintimes) {
this.userName = userName;
this.password = password;
this.registerTime = registerTime;
this.ifUse = ifUse;
this.logintimes = logintimes;
}
// 无参构造函数
public Member() {
}
// 获取会员ID
public Integer getMemberId() {
return memberId;
}
// 设置会员ID
public void setMemberId(Integer memberId) {
this.memberId = memberId;
}
// 获取会员用户名
public String getUserName() {
return userName;
}
// 设置会员用户名
public void setUserName(String userName) {
this.userName = userName;
}
// 获取会员密码
public String getPassword() {
return password;
}
// 设置会员密码
public void setPassword(String password) {
this.password = password;
}
// 获取注册时间
public Timestamp getRegisterTime() {
return registerTime;
}
// 设置注册时间
public void setRegisterTime(Timestamp registerTime) {
this.registerTime = registerTime;
}
// 获取是否启用状态
public Integer getIfUse() {
return ifUse;
}
// 设置是否启用状态
public void setIfUse(Integer ifUse) {
this.ifUse = ifUse;
}
// 获取登录时间
public Timestamp getLogintimes() {
return logintimes;
}
// 设置登录时间
public void setLogintimes(Timestamp logintimes) {
this.logintimes = logintimes;
}
// 返回Member对象的字符串表示形式
@Override
public String toString() {
return "Member [memberId=" + memberId + ", userName=" + userName + ", password=" + password + ", registerTime="
+ registerTime + ", ifUse=" + ifUse + ", logintimes=" + logintimes + "]";
}
}