"use strict";
/**
 * 共享库配置模块
 * @date 2022-03
 * @author 何华东
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.getIORedisConfig = exports.getAliOssConfig = exports.getParkImageKnexConfig = exports.getDataLakePrestoClientConfig = exports.getNonStandardApiConfig = exports.getTYApiConfig = exports.getBasicConfig = exports.getConfig = void 0;
var typescript_ioc_1 = require("typescript-ioc");
/**
 * 获取所有配置
 * @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 getTYApiConfig() {
    return typescript_ioc_1.Container.getValue('config.tyApi');
}
exports.getTYApiConfig = getTYApiConfig;
/**
 * 获取非标API配置
 * @returns
 */
function getNonStandardApiConfig() {
    return typescript_ioc_1.Container.getValue('config.nonStandardApi');
}
exports.getNonStandardApiConfig = getNonStandardApiConfig;
/**
 * 获取数据湖配置
 * @returns
 */
function getDataLakePrestoClientConfig() {
    return typescript_ioc_1.Container.getValue('config.dataLakePrestoClient');
}
exports.getDataLakePrestoClientConfig = getDataLakePrestoClientConfig;
/**
 * 获取镜像车场配置
 * @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;
/**
 * 获取redis配置
 * @returns
 */
function getIORedisConfig() {
    return typescript_ioc_1.Container.getValue('config.ioredis');
}
exports.getIORedisConfig = getIORedisConfig;
//# sourceMappingURL=Config.js.map