import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';
import { UpdateDto } from 'src/common/dto/update.dto';

export class UpdatePasswordDto extends UpdateDto {
  @ApiProperty({ description: '旧密码' })
  @IsNotEmpty({ message: '请输入旧密码' })
  oldPassword: string;

  @ApiProperty({ description: '新密码' })
  @IsNotEmpty({ message: '请输入新密码' })
  password: string;

  @ApiProperty({ description: '确认新密码' })
  @IsNotEmpty({ message: '请输入确认新密码' })
  confirmPassword: string;
}
