package tech.easyflow.ai.vo;

import tech.easyflow.ai.entity.DocumentCollection;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 知识库分享页详情视图。
 *
 * @author Codex
 * @since 2026-04-15
 */
public class KnowledgeShareViewDetail implements Serializable {

    /**
     * 当前分享对应的知识库。
     */
    private DocumentCollection knowledge;

    /**
     * 当前分享授权范围。
     */
    private List<String> permissionScopes = new ArrayList<String>();

    public DocumentCollection getKnowledge() {
        return knowledge;
    }

    public void setKnowledge(DocumentCollection knowledge) {
        this.knowledge = knowledge;
    }

    public List<String> getPermissionScopes() {
        return permissionScopes;
    }

    public void setPermissionScopes(List<String> permissionScopes) {
        this.permissionScopes = permissionScopes == null
            ? new ArrayList<String>()
            : new ArrayList<String>(permissionScopes);
    }
}
