Files
wwjcloud-nest-v1/wwjcloud/src/common/sys/services/admin/SystemService.ts
2025-09-11 22:06:19 +08:00

84 lines
2.8 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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();
}
}