23 lines
504 B
TypeScript
23 lines
504 B
TypeScript
import serviceConfig, { ServiceConfig } from "./configs/service-config.ts";
|
|
import systemConfig from "./configs/system-config.ts";
|
|
|
|
class Config {
|
|
|
|
/** 服务配置 */
|
|
service: ServiceConfig = serviceConfig;
|
|
|
|
/** 系统配置 */
|
|
system = systemConfig;
|
|
|
|
// 代理属性以便直接访问心跳和数据库配置
|
|
get heartbeat() {
|
|
return this.service.heartbeat;
|
|
}
|
|
|
|
get database() {
|
|
return this.service.database;
|
|
}
|
|
|
|
}
|
|
|
|
export default new Config(); |