localhost_oa_based/src/config/index.ts

38 lines
1.2 KiB
TypeScript
Raw Normal View History

2024-02-28 08:32:35 +08:00
import { AppConfig, IAppConfig, appRegToken } from './app.config'
import { DatabaseConfig, IDatabaseConfig, dbRegToken } from './database.config'
import { IMailerConfig, MailerConfig, mailerRegToken } from './mailer.config'
import { IOssConfig, OssConfig, ossRegToken } from './oss.config'
import { IRedisConfig, RedisConfig, redisRegToken } from './redis.config'
import { ISecurityConfig, SecurityConfig, securityRegToken } from './security.config'
import { ISwaggerConfig, SwaggerConfig, swaggerRegToken } from './swagger.config'
export * from './app.config'
export * from './redis.config'
export * from './database.config'
export * from './swagger.config'
export * from './security.config'
export * from './mailer.config'
export * from './oss.config'
export interface AllConfigType {
[appRegToken]: IAppConfig
[dbRegToken]: IDatabaseConfig
[mailerRegToken]: IMailerConfig
[redisRegToken]: IRedisConfig
[securityRegToken]: ISecurityConfig
[swaggerRegToken]: ISwaggerConfig
[ossRegToken]: IOssConfig
}
export type ConfigKeyPaths = RecordNamePaths<AllConfigType>
export default {
AppConfig,
DatabaseConfig,
MailerConfig,
OssConfig,
RedisConfig,
SecurityConfig,
SwaggerConfig,
}