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

@@ -59,7 +59,9 @@ export const AppConfigSchema = Joi.object({
// 第三方服务配置验证
STORAGE_PROVIDER: Joi.string().optional(),
STORAGE_CONFIG: Joi.string().optional(),
PAYMENT_PROVIDER: Joi.string().valid('mock', 'alipay', 'wechat', 'stripe').optional(),
PAYMENT_PROVIDER: Joi.string()
.valid('mock', 'alipay', 'wechat', 'stripe')
.optional(),
PAYMENT_CONFIG: Joi.string().optional(),
SMS_PROVIDER: Joi.string().optional(),
SMS_CONFIG: Joi.string().optional(),
@@ -71,14 +73,14 @@ export const AppConfigSchema = Joi.object({
* @returns 验证结果
*/
export function validateAppConfig(config: Record<string, any>) {
const { error, value } = AppConfigSchema.validate(config, {
allowUnknown: true,
abortEarly: false
const { error, value } = AppConfigSchema.validate(config, {
allowUnknown: true,
abortEarly: false,
});
if (error) {
throw new Error(`应用配置验证失败: ${error.message}`);
}
return value;
}
}