"use strict";
/**
 * 共享库配置模块
 *
 * 抽象了共享库依赖的配置接口
 *
 * 上层应用需要将配置信息注册到typescript-ioc中，共享库就可以从中读取
 * @date 2022-03
 * @author 何华东
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAliOssConfig = exports.getParkImageKnexConfig = exports.getPrestoClientConfig = exports.getNonStandardApiConfig = exports.getUniteApiConfig = exports.getBasicConfig = exports.getConfig = exports.AliOssConfig = void 0;
var typescript_ioc_1 = require("typescript-ioc");
/**
 * ali-oss配置
 */
var AliOssConfig = /** @class */ (function () {
    function AliOssConfig() {
    }
    return AliOssConfig;
}());
exports.AliOssConfig = AliOssConfig;
/**
 * 获取所有配置
 * @returns
 */
function getConfig() {
    return typescript_ioc_1.Container.getValue('config');
}
exports.getConfig = getConfig;
/**
 * 获取基础配置
 * @returns
 */
function getBasicConfig() {
    return typescript_ioc_1.Container.getValue('config.basic');
}
exports.getBasicConfig = getBasicConfig;
/**
 * 获取统一API配置
 * @returns
 */
function getUniteApiConfig() {
    return typescript_ioc_1.Container.getValue('config.uniteApi');
}
exports.getUniteApiConfig = getUniteApiConfig;
/**
 * 获取非标API配置
 * @returns
 */
function getNonStandardApiConfig() {
    return typescript_ioc_1.Container.getValue('config.nonStandardApi');
}
exports.getNonStandardApiConfig = getNonStandardApiConfig;
/**
 * 获取数据湖配置
 * @returns
 */
function getPrestoClientConfig() {
    return typescript_ioc_1.Container.getValue('config.prestoClient');
}
exports.getPrestoClientConfig = getPrestoClientConfig;
/**
 * 获取镜像车场配置
 * @returns
 */
function getParkImageKnexConfig() {
    return typescript_ioc_1.Container.getValue('config.parkImageKnex');
}
exports.getParkImageKnexConfig = getParkImageKnexConfig;
/**
 * 获取ali-oss配置
 * @returns
 */
function getAliOssConfig() {
    return typescript_ioc_1.Container.getValue('config.aliOss');
}
exports.getAliOssConfig = getAliOssConfig;
//# sourceMappingURL=Config.js.map