import { Injectable } from '@nestjs/common'; import { CoreSystemService } from '../core/CoreSystemService'; @Injectable() export class SystemService { constructor(private readonly coreSystemService: CoreSystemService) {} /** * 获取当前系统信息 */ async getInfo() { return this.coreSystemService.getInfo(); } /** * 获取当前url配置 - 控制器契约:getUrl(siteId) */ async getUrl(siteId?: number) { return this.coreSystemService.getUrl(); } /** * 获取系统环境配置 */ async getSystemInfo() { return this.coreSystemService.getSystemInfo(); } /** * 清理表缓存 */ async schemaCache() { return this.coreSystemService.schemaCache(); } /** * 清理缓存 */ async clearCache() { return this.coreSystemService.clearCache(); } /** * 校验消息队列是否正常运行 */ async checkJob() { return this.coreSystemService.checkJob(); } /** * 校验计划任务是否正常运行 */ async checkSchedule() { return this.coreSystemService.checkSchedule(); } /** * 环境变量查询 */ async getEnvInfo() { return this.coreSystemService.getEnvInfo(); } /** * 获取推广二维码 */ async getQrcode(params: any) { return this.coreSystemService.getQrcode(params); } /** * 获取系统统计信息 */ async getSystemStats() { return this.coreSystemService.getSystemStats(); } /** * 检查系统配置 */ async checkSystemConfig() { return this.coreSystemService.checkSystemConfig(); } }