code in response

This commit is contained in:
2026-07-03 12:27:21 +03:30
parent 713734b842
commit fb4ddb4dac
4 changed files with 46 additions and 15 deletions
@@ -1,4 +1,4 @@
import { ApiProperty } from '@nestjs/swagger';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
export class RequestSalonOtpResponseDto {
@ApiProperty({ example: 'OTP sent' })
@@ -14,4 +14,10 @@ export class RequestSalonOtpResponseDto {
example: 900,
})
expiresInSeconds: number;
@ApiPropertyOptional({
description: 'Only returned in non-production environments when SMS is unavailable',
example: '12345',
})
code?: string;
}