package tech.easyflow.ai.documentimport.task;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 文档导入状态广播配置。
 */
@ConfigurationProperties(prefix = "easyflow.ai.document-import")
public class DocumentImportStatusBroadcastProperties {

    private String statusBroadcastChannel = "easyflow:document-import:status";

    /**
     * 获取文档导入状态广播通道。
     *
     * @return Redis 广播通道
     */
    public String getStatusBroadcastChannel() {
        return statusBroadcastChannel;
    }

    /**
     * 设置文档导入状态广播通道。
     *
     * @param statusBroadcastChannel Redis 广播通道
     */
    public void setStatusBroadcastChannel(String statusBroadcastChannel) {
        if (statusBroadcastChannel == null || statusBroadcastChannel.trim().isEmpty()) {
            this.statusBroadcastChannel = "easyflow:document-import:status";
            return;
        }
        this.statusBroadcastChannel = statusBroadcastChannel.trim();
    }
}
