public class ChatHistoryListRespDTO implements Serializable{

    private ChatHistoryRespDTO[] records; //聊天记录列表
    private long total; //总记录数
    private long current; //当前页码
    private long size; //每页记录数
    private boolean hasMore; //是否有更多记录

    public ChatHistoryRespDTO[] getRecords(){
        return records;
    }

    public void setRecords(ChatHistoryRespDTO[] records){
        this.records = records;
    }

    public long getTotal(){
        return total;
    }

    public void setTotal(long total){
        this.total = total;
    }

    public long getCurrent(){
        return current;
    }

    public void setCurrent(long current){
        this.current = current;
    }

    public long getSize(){
        return size;
    }

    public void setSize(long size){
        this.size = size;
    }

    public boolean getHasMore(){
        return hasMore;
    }

    public void setHasMore(boolean hasMore){
        this.hasMore = hasMore;
    }

}
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;
    }

}