- 迁移25个模块,包含95个控制器和160个服务 - 新增验证码管理、登录配置、云编译等模块 - 完善认证授权、会员管理、支付系统等核心功能 - 实现完整的队列系统、配置管理、监控体系 - 确保100%功能对齐和命名一致性 - 支持生产环境部署
49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsOptional, IsString, IsNumber } from 'class-validator';
|
|
|
|
export class CaptchaCreateDto {
|
|
@ApiProperty({ description: '验证码类型', required: false })
|
|
@IsOptional()
|
|
@IsString()
|
|
type?: string;
|
|
|
|
@ApiProperty({ description: '验证码长度', required: false })
|
|
@IsOptional()
|
|
@IsNumber()
|
|
length?: number;
|
|
|
|
@ApiProperty({ description: '验证码宽度', required: false })
|
|
@IsOptional()
|
|
@IsNumber()
|
|
width?: number;
|
|
|
|
@ApiProperty({ description: '验证码高度', required: false })
|
|
@IsOptional()
|
|
@IsNumber()
|
|
height?: number;
|
|
}
|
|
|
|
export class CaptchaCheckDto {
|
|
@ApiProperty({ description: '验证码ID' })
|
|
@IsString()
|
|
captchaId: string;
|
|
|
|
@ApiProperty({ description: '验证码值' })
|
|
@IsString()
|
|
captchaValue: string;
|
|
}
|
|
|
|
export class CaptchaVerificationDto {
|
|
@ApiProperty({ description: '验证码ID' })
|
|
@IsString()
|
|
captchaId: string;
|
|
|
|
@ApiProperty({ description: '验证码值' })
|
|
@IsString()
|
|
captchaValue: string;
|
|
|
|
@ApiProperty({ description: '二次验证参数', required: false })
|
|
@IsOptional()
|
|
params?: Record<string, any>;
|
|
}
|