| ... | ... | @@ -279,3 +279,48 @@ export class ScoreDTO { |
|
|
|
faction: string;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### CreateTaskDTO
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export class CreateTaskDTO {
|
|
|
|
@IsString()
|
|
|
|
@Length(3, 31)
|
|
|
|
taskName: string;
|
|
|
|
@IsString()
|
|
|
|
@Length(0, 255)
|
|
|
|
taskDescription: string;
|
|
|
|
@IsBoolean()
|
|
|
|
taskIsActive: boolean;
|
|
|
|
@IsOptional()
|
|
|
|
@IsUUID("4")
|
|
|
|
faction: FactionEntity;
|
|
|
|
@Equals(null)
|
|
|
|
taskWinner: FactionEntity;
|
|
|
|
// faction unique id
|
|
|
|
@IsUUID("4")
|
|
|
|
taskGame: GameEntity;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### EditTaskDTO
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export class EditTaskDTO {
|
|
|
|
@IsUUID("4")
|
|
|
|
taskId: string;
|
|
|
|
@IsUUID("4")
|
|
|
|
taskWinner: FactionEntity;
|
|
|
|
@IsUUID("4")
|
|
|
|
taskGame: GameEntity;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### DeleteTaskDTO
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export class DeleteTaskDTO {
|
|
|
|
@IsUUID("4")
|
|
|
|
taskId: string;
|
|
|
|
}
|
|
|
|
``` |