package org.xyzh.ai.client.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import java.util.List;

/**
 * @description 知识库列表响应
 * @filename DatasetListResponse.java
 * @author AI Assistant
 * @copyright xyzh
 * @since 2025-11-04
 */
@Data
public class DatasetListResponse {

    /**
     * 知识库列表
     */
    private List<DatasetInfo> data;

    /**
     * 是否有更多
     */
    @JSONField(name = "has_more")
    private Boolean hasMore;

    /**
     * 分页限制
     */
    private Integer limit;

    /**
     * 总数
     */
    private Integer total;

    /**
     * 当前页
     */
    private Integer page;

    @Data
    public static class DatasetInfo {
        private String id;
        private String name;
        private String description;
        private String permission;
        @JSONField(name = "document_count")
        private Integer documentCount;
        @JSONField(name = "word_count")
        private Integer wordCount;
        @JSONField(name = "created_by")
        private String createdBy;
        @JSONField(name = "created_at")
        private Long createdAt;
        @JSONField(name = "updated_at")
        private Long updatedAt;
    }
}

