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.
chat-room/User.java

173 lines
3.3 KiB

package com.hyc.wechat.model.po;
import com.hyc.wechat.dao.annotation.Field;
import com.hyc.wechat.dao.annotation.Table;
import com.hyc.wechat.model.po.abs.BaseEntity;
/**
* 用户实体类,用于表示数据库中的用户表
*
* @author <a href="mailto:kobe524348@gmail.com">黄钰朝</a>
* @program wechat
* @description 用户实体类,包含用户的基本信息和属性
* @date 2019-05-01 23:27
*/
@Table(name = "user") // 指定该实体类对应的数据库表名为"user"
public class User extends BaseEntity {
/**
* 用户邮箱
*/
@Field(name = "email")
private String email;
/**
* 微信ID
*/
@Field(name = "wechat_id")
private String wechatId;
/**
* 用户电话号码
*/
@Field(name = "phone")
private String phone;
/**
* 用户密码
*/
@Field(name = "password")
private String password;
/**
* 用户性别
*/
@Field(name = "gender")
private String gender;
/**
* 用户签名
*/
@Field(name = "signature")
private String signature;
/**
* 用户姓名
*/
@Field(name = "name")
private String name;
/**
* 用户头像URL
*/
@Field(name = "photo")
private String photo;
/**
* 用户聊天背景URL
*/
@Field(name = "chat_background")
private String chatBackground;
/**
* 用户位置信息
*/
@Field(name = "location")
private String location;
/**
* 用户在线状态
*/
@Field(name = "online_status")
private String onlineStatus;
// 以下是属性的getter和setter方法
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getWechatId() {
return wechatId;
}
public void setWechatId(String wechatId) {
this.wechatId = wechatId;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public String getSignature() {
return signature;
}
public void setSignature(String signature) {
this.signature = signature;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPhoto() {
return photo;
}
public void setPhoto(String photo) {
this.photo = photo;
}
public String getChatBackground() {
return chatBackground;
}
public void setChatBackground(String chatBackground) {
this.chatBackground = chatBackground;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public String getOnlineStatus() {
return onlineStatus;
}
public void setOnlineStatus(String onlineStatus) {
this.onlineStatus = onlineStatus;
}
}