109 lines
2.0 KiB
JavaScript
109 lines
2.0 KiB
JavaScript
class User {
|
|
id;
|
|
user_account;
|
|
user_name;
|
|
password;
|
|
email;
|
|
mobile;
|
|
status;
|
|
create_time;
|
|
update_time;
|
|
|
|
constructor(id, user_account, user_name, password, email, mobile, status, create_time, update_time) {
|
|
this.id = id;
|
|
this.user_account = user_account;
|
|
this.user_name = user_name;
|
|
this.password = password;
|
|
this.email = email;
|
|
this.mobile = mobile;
|
|
this.status = status;
|
|
this.create_time = create_time;
|
|
this.update_time = update_time;
|
|
}
|
|
|
|
getId() {
|
|
return this._id;
|
|
}
|
|
|
|
setId(id) {
|
|
this._id = id;
|
|
}
|
|
|
|
getUserAccount() {
|
|
return this.user_account;
|
|
}
|
|
|
|
setUserAccount(value) {
|
|
this.user_account = value;
|
|
}
|
|
|
|
getUserName() {
|
|
return this.user_name;
|
|
}
|
|
|
|
setUserName(user_name) {
|
|
this.user_name = user_name;
|
|
}
|
|
|
|
getPassword() {
|
|
return this.password;
|
|
}
|
|
|
|
setPassword(password) {
|
|
this.password = password;
|
|
}
|
|
|
|
getEmail() {
|
|
return this.email;
|
|
}
|
|
|
|
setEmail(email) {
|
|
this.email = email;
|
|
}
|
|
|
|
getMobile() {
|
|
return this.mobile;
|
|
}
|
|
|
|
setMobile(mobile) {
|
|
this.mobile = mobile;
|
|
}
|
|
|
|
getStatus() {
|
|
return this.status;
|
|
}
|
|
|
|
setStatus(status) {
|
|
this.status = status;
|
|
}
|
|
|
|
getCreateTime() {
|
|
return this.create_time;
|
|
}
|
|
|
|
setCreateTime(create_time) {
|
|
this.create_time = create_time;
|
|
}
|
|
|
|
getUpdateTime() {
|
|
return this.update_time;
|
|
}
|
|
|
|
setUpdateTime(update_time) {
|
|
this.update_time = update_time;
|
|
}
|
|
|
|
toString() {
|
|
return '\n' + this.id + '\n'
|
|
+ this.user_name + '\n'
|
|
+ this.user_account + '\n'
|
|
+ this.password + '\n'
|
|
+ this.email + '\n'
|
|
+ this.mobile + '\n'
|
|
+ this.status + '\n'
|
|
+ this.create_time + '\n'
|
|
+ this.update_time;
|
|
}
|
|
}
|
|
|
|
module.exports = User; |