alioth/star-tune/src/module/user/dto/reset-password.dto.ts
2025-06-04 22:44:02 +08:00

17 lines
413 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import { IsString, MinLength, IsEmail } from 'class-validator';
export class ResetPasswordDto {
@ApiProperty({ description: '邮箱' })
@IsEmail()
email: string;
@ApiProperty({ description: '验证码' })
@IsString()
code: string;
@ApiProperty({ description: '新密码' })
@IsString()
@MinLength(6)
newPassword: string;
}