feat: 完成PHP到NestJS的100%功能迁移

- 迁移25个模块,包含95个控制器和160个服务
- 新增验证码管理、登录配置、云编译等模块
- 完善认证授权、会员管理、支付系统等核心功能
- 实现完整的队列系统、配置管理、监控体系
- 确保100%功能对齐和命名一致性
- 支持生产环境部署
This commit is contained in:
万物街
2025-09-10 08:04:28 +08:00
parent a2d6a47601
commit 7a20a0c50a
551 changed files with 35628 additions and 2025 deletions

View File

@@ -0,0 +1,75 @@
import { Injectable } from '@nestjs/common';
import { CoreScheduleService } from '../core/CoreScheduleService';
import { SysSchedule } from '../../entities/SysSchedule';
/**
* 定时任务服务 - Admin层
*/
@Injectable()
export class ScheduleService {
constructor(private readonly coreScheduleService: CoreScheduleService) {}
/**
* 获取定时任务分页列表
*/
async getPage(siteId: number, data: any = {}) {
const { key, status, page = 1, limit = 10 } = data;
return await this.coreScheduleService.getPage(
siteId,
key,
status,
page,
limit,
);
}
/**
* 获取定时任务列表
*/
async getList(siteId: number, data: any = {}) {
return await this.coreScheduleService.getList(siteId, data);
}
/**
* 获取定时任务信息
*/
async getInfo(siteId: number, id: number) {
return await this.coreScheduleService.getInfo(siteId, id);
}
/**
* 添加定时任务
*/
async add(siteId: number, data: Partial<SysSchedule>) {
const scheduleData = { ...data, siteId };
return await this.coreScheduleService.add(scheduleData);
}
/**
* 编辑定时任务
*/
async edit(siteId: number, id: number, data: Partial<SysSchedule>) {
return await this.coreScheduleService.edit(siteId, id, data);
}
/**
* 删除定时任务
*/
async del(siteId: number, id: number) {
return await this.coreScheduleService.del(siteId, id);
}
/**
* 启动定时任务
*/
async start(siteId: number, id: number) {
return await this.coreScheduleService.start(siteId, id);
}
/**
* 停止定时任务
*/
async stop(siteId: number, id: number) {
return await this.coreScheduleService.stop(siteId, id);
}
}