package com.huimv.employment.service.conversation.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.List;

/**
 * 会话消息分页结果。
 */
@Schema(description = "会话消息分页结果")
public class ConversationMessagePageResponse {

    @Schema(description = "消息列表，按 create_time 正序")
    private List<ConversationMessageResponse> items;

    @Schema(description = "总条数", example = "128")
    private long total;

    @Schema(description = "当前页码，从 1 开始", example = "1")
    private int page;

    @Schema(description = "每页条数", example = "50")
    private int size;

    @Schema(description = "是否还有下一页", example = "true")
    private boolean hasMore;

    public List<ConversationMessageResponse> getItems() {
        return items;
    }

    public void setItems(List<ConversationMessageResponse> items) {
        this.items = items;
    }

    public long getTotal() {
        return total;
    }

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

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

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

    public boolean isHasMore() {
        return hasMore;
    }

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