- 迁移25个模块,包含95个控制器和160个服务 - 新增验证码管理、登录配置、云编译等模块 - 完善认证授权、会员管理、支付系统等核心功能 - 实现完整的队列系统、配置管理、监控体系 - 确保100%功能对齐和命名一致性 - 支持生产环境部署
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { Injectable } from '@nestjs/common';
|
|
import { InjectRepository } from '@nestjs/typeorm';
|
|
import { Repository } from 'typeorm';
|
|
import { Site } from './site.entity';
|
|
import { UpdateSiteSettingsDto } from './site-settings.dto';
|
|
|
|
// 不允许硬编码,从配置系统获取
|
|
// TODO: 配置系统重构中,此功能暂时不可用
|
|
|
|
@Injectable()
|
|
export class SiteSettingsService {
|
|
constructor(
|
|
@InjectRepository(Site)
|
|
private readonly siteRepository: Repository<Site>,
|
|
) {}
|
|
|
|
/**
|
|
* 获取站点设置
|
|
*/
|
|
getSiteSettings() {
|
|
// 配置系统重构中,此功能暂时不可用
|
|
throw new Error('配置系统重构中,站点设置功能暂时不可用');
|
|
}
|
|
|
|
/**
|
|
* 更新站点设置
|
|
*/
|
|
updateSiteSettings(updateSiteSettingsDto: UpdateSiteSettingsDto) {
|
|
// 配置系统重构中,此功能暂时不可用
|
|
throw new Error('配置系统重构中,站点设置更新功能暂时不可用');
|
|
}
|
|
|
|
/**
|
|
* 重置站点设置为默认值
|
|
*/
|
|
resetSiteSettings() {
|
|
// 配置系统重构中,此功能暂时不可用
|
|
throw new Error('配置系统重构中,站点设置重置功能暂时不可用');
|
|
}
|
|
}
|