package com.rongwei.sfcommon.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * QueryFilteringConfig class
 *
 * @author XH
 * @date 2024/08/30
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "enterprise")
@Component
@EnableConfigurationProperties(QueryFilteringConfig.class)
public class QueryFilteringConfig {
    /**
     * 查看所有工厂的角色编码
     */
    private String orgCod = "";
    /**
     * 不需要隔离的page_part_id
     */
    private List<String> noIsolationPagePartId = new ArrayList<>();
    /**
     * 参与数据过滤的数据ID 当前项目为工厂ID
     */
    private List<String> isolationId = new ArrayList<>();
}
