package com.yh.saas.platform.properties;

import java.util.Map;

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

import lombok.Getter;
import lombok.Setter;

/**
 * BI配置信息
 * 
 * @author SunTianjun
 */
public class BIProperties {

	private BIProperties() {
	}

	/**
	 * BI服务器配置
	 */
	@Getter
	@Setter
	@Configuration
	@ConfigurationProperties(prefix = "bi.server")
	public static class BIServerProperties {

		private String protocol;

		private String ip;

		private String port;

		private String contextPath;

		private String reportBasePath;
	}

	/**
	 * BI报表配置
	 */
	@Getter
	@Setter
	@Configuration
	@ConfigurationProperties(prefix = "bi.report")
	public static class BIReportProperties {

		private Map<String, String> view;

		private Map<String, String> export;
	}
}
