public class ChatHistoryRespDTO implements Serializable{ private int id; //聊天记录ID private String fromUserId; //发送者用户ID private String toUserId; //接收者用户ID private String content; //聊天内容 private int isFavorite; //是否收藏 (1: 已收藏, 0: 未收藏) private boolean isSelf; //是否是自己发送的消息 private String sendTime; //发送时间 public int getId(){ return id; } public void setId(int id){ this.id = id; } public String getFromUserId(){ return fromUserId; } public void setFromUserId(String fromUserId){ this.fromUserId = fromUserId; } public String getToUserId(){ return toUserId; } public void setToUserId(String toUserId){ this.toUserId = toUserId; } public String getContent(){ return content; } public void setContent(String content){ this.content = content; } public int getIsFavorite(){ return isFavorite; } public void setIsFavorite(int isFavorite){ this.isFavorite = isFavorite; } public boolean getIsSelf(){ return isSelf; } public void setIsSelf(boolean isSelf){ this.isSelf = isSelf; } public String getSendTime(){ return sendTime; } public void setSendTime(String sendTime){ this.sendTime = sendTime; } }