resolve manual DTOs
This commit is contained in:
25
apps/api/src/domain/race/dtos/ReviewProtestCommandDTO.ts
Normal file
25
apps/api/src/domain/race/dtos/ReviewProtestCommandDTO.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsString, IsNotEmpty, IsEnum } from 'class-validator';
|
||||
|
||||
export class ReviewProtestCommandDTO {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
protestId!: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
stewardId!: string;
|
||||
|
||||
@ApiProperty({
|
||||
enum: ['uphold', 'dismiss'],
|
||||
})
|
||||
@IsEnum(['uphold', 'dismiss'])
|
||||
decision!: 'uphold' | 'dismiss';
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
decisionNotes!: string;
|
||||
}
|
||||
Reference in New Issue
Block a user