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.
test/src/main/java/com/entity/view/ChatView.java

239 lines
6.5 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.entity.view;
import com.entity.ChatEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
/**
* 在线咨询
* 后端返回视图实体辅助类
* (通常后端关联的表或者自定义的字段需要返回使用)
*/
// 使用TableName注解指定该类对应的数据库表名为 "chat"
@TableName("chat")
// ChatView类继承自ChatEntity类并实现了Serializable接口以便对象可以被序列化和反序列化
public class ChatView extends ChatEntity implements Serializable {
// 序列化版本号,用于保证在不同版本的类之间进行序列化和反序列化时的兼容性
private static final long serialVersionUID = 1L;
/**
* 状态的值
*/
// 用于存储在线咨询相关的状态值,可能表示咨询的状态(如进行中、已结束等)
private String zhuangtaiValue;
/**
* 数据类型的值
*/
// 用于存储在线咨询的数据类型相关的值,具体含义可能根据业务需求而定
private String chatValue;
// 级联表 yonghu
/**
* 用户姓名
*/
// 存储与在线咨询相关联的用户的姓名信息
private String yonghuName;
/**
* 头像
*/
// 存储与在线咨询相关联的用户的头像路径或标识
private String yonghuPhoto;
/**
* 用户手机号
*/
// 存储与在线咨询相关联的用户的手机号码,用于联系用户
private String yonghuPhone;
/**
* 用户身份证号
*/
// 存储与在线咨询相关联的用户的身份证号码,用于身份验证等业务
private String yonghuIdNumber;
/**
* 邮箱
*/
// 存储与在线咨询相关联的用户的电子邮箱地址,可用于发送通知等
private String yonghuEmail;
/**
* 余额
*/
// 存储与在线咨询相关联的用户的账户余额,可能与咨询费用等相关
private Double newMoney;
/**
* 假删
*/
// 用于标识与在线咨询相关联的用户记录是否被逻辑删除假删0表示未删除1表示已删除
private Integer yonghuDelete;
// 无参构造函数用于创建ChatView对象
public ChatView() {
}
// 构造函数接受一个ChatEntity对象作为参数通过BeanUtils.copyProperties方法
// 将ChatEntity对象的属性值复制到当前ChatView对象中
public ChatView(ChatEntity chatEntity) {
try {
BeanUtils.copyProperties(this, chatEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// 如果在复制属性过程中出现异常,打印异常堆栈信息
e.printStackTrace();
}
}
/**
* 获取: 状态的值
*/
// 获取状态值的方法外部可以通过调用该方法获取zhuangtaiValue属性的值
public String getZhuangtaiValue() {
return zhuangtaiValue;
}
/**
* 设置: 状态的值
*/
// 设置状态值的方法外部可以通过调用该方法设置zhuangtaiValue属性的值
public void setZhuangtaiValue(String zhuangtaiValue) {
this.zhuangtaiValue = zhuangtaiValue;
}
/**
* 获取: 数据类型的值
*/
// 获取数据类型值的方法外部可以通过调用该方法获取chatValue属性的值
public String getChatValue() {
return chatValue;
}
/**
* 设置: 数据类型的值
*/
// 设置数据类型值的方法外部可以通过调用该方法设置chatValue属性的值
public void setChatValue(String chatValue) {
this.chatValue = chatValue;
}
// 级联表的get和set yonghu
/**
* 获取: 用户姓名
*/
// 获取用户姓名的方法外部可以通过调用该方法获取yonghuName属性的值
public String getYonghuName() {
return yonghuName;
}
/**
* 设置: 用户姓名
*/
// 设置用户姓名的方法外部可以通过调用该方法设置yonghuName属性的值
public void setYonghuName(String yonghuName) {
this.yonghuName = yonghuName;
}
/**
* 获取: 头像
*/
// 获取用户头像的方法外部可以通过调用该方法获取yonghuPhoto属性的值
public String getYonghuPhoto() {
return yonghuPhoto;
}
/**
* 设置: 头像
*/
// 设置用户头像的方法外部可以通过调用该方法设置yonghuPhoto属性的值
public void setYonghuPhoto(String yonghuPhoto) {
this.yonghuPhoto = yonghuPhoto;
}
/**
* 获取: 用户手机号
*/
// 获取用户手机号的方法外部可以通过调用该方法获取yonghuPhone属性的值
public String getYonghuPhone() {
return yonghuPhone;
}
/**
* 设置: 用户手机号
*/
// 设置用户手机号的方法外部可以通过调用该方法设置yonghuPhone属性的值
public void setYonghuPhone(String yonghuPhone) {
this.yonghuPhone = yonghuPhone;
}
/**
* 获取: 用户身份证号
*/
// 获取用户身份证号的方法外部可以通过调用该方法获取yonghuIdNumber属性的值
public String getYonghuIdNumber() {
return yonghuIdNumber;
}
/**
* 设置: 用户身份证号
*/
// 设置用户身份证号的方法外部可以通过调用该方法设置yonghuIdNumber属性的值
public void setYonghuIdNumber(String yonghuIdNumber) {
this.yonghuIdNumber = yonghuIdNumber;
}
/**
* 获取: 邮箱
*/
// 获取用户邮箱的方法外部可以通过调用该方法获取yonghuEmail属性的值
public String getYonghuEmail() {
return yonghuEmail;
}
/**
* 设置: 邮箱
*/
// 设置用户邮箱的方法外部可以通过调用该方法设置yonghuEmail属性的值
public void setYonghuEmail(String yonghuEmail) {
this.yonghuEmail = yonghuEmail;
}
/**
* 获取: 余额
*/
// 获取用户余额的方法外部可以通过调用该方法获取newMoney属性的值
public Double getNewMoney() {
return newMoney;
}
/**
* 设置: 余额
*/
// 设置用户余额的方法外部可以通过调用该方法设置newMoney属性的值
public void setNewMoney(Double newMoney) {
this.newMoney = newMoney;
}
/**
* 获取: 假删
*/
// 获取用户假删状态的方法外部可以通过调用该方法获取yonghuDelete属性的值
public Integer getYonghuDelete() {
return yonghuDelete;
}
/**
* 设置: 假删
*/
// 设置用户假删状态的方法外部可以通过调用该方法设置yonghuDelete属性的值
public void setYonghuDelete(Integer yonghuDelete) {
this.yonghuDelete = yonghuDelete;
}
}