mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-27 05:37:55 +00:00
Add activation code endpoint
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user