Add activation code endpoint

This commit is contained in:
faris Aljohari
2025-01-04 04:44:34 -06:00
parent 33c9518ca5
commit c616547f9b
6 changed files with 162 additions and 5 deletions
+22
View File
@@ -0,0 +1,22 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsNotEmpty } from 'class-validator';
export class ActivateCodeDto {
@ApiProperty({
description: 'The activation code of the user',
example: '7CvRcA',
required: true,
})
@IsString()
@IsNotEmpty()
activationCode: string;
@ApiProperty({
description: 'The UUID of the user',
example: 'd7a44e8a-32d5-4f39-ae2e-013f1245aead',
required: true,
})
@IsString()
@IsNotEmpty()
userUuid: string;
}