gcx/backend/services/auth-service/src/interface/http/dto/send-sms-code.dto.ts

10 lines
278 B
TypeScript

import { IsString, IsNotEmpty } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class SendSmsCodeDto {
@ApiProperty({ description: 'Phone number to send SMS code to', example: '+8613800138000' })
@IsString()
@IsNotEmpty()
phone: string;
}