| ... | @@ -145,3 +145,50 @@ export class FlagboxDTO { |
... | @@ -145,3 +145,50 @@ export class FlagboxDTO { |
|
|
data: JSON;
|
|
data: JSON;
|
|
|
}
|
|
}
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
### JoinFactionDTO
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export class JoinFactionDTO {
|
|
|
|
@IsUUID("4")
|
|
|
|
factionId: string;
|
|
|
|
@Length(3, 31)
|
|
|
|
factionPassword: string;
|
|
|
|
@IsUUID("4")
|
|
|
|
game: GameEntity;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### PromotePlayerDTO
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export class PromotePlayerDTO {
|
|
|
|
@IsUUID("4")
|
|
|
|
player: string;
|
|
|
|
@IsIn(["admin", "soldier", "factionleader"])
|
|
|
|
role: string;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### GameGroupDTO
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export class GameGroupDTO {
|
|
|
|
@IsString()
|
|
|
|
@Length(3, 31)
|
|
|
|
name: string;
|
|
|
|
@IsIn(["infantry", "recon", "mechanized"])
|
|
|
|
class: string;
|
|
|
|
@IsUUID("4")
|
|
|
|
faction: FactionEntity;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### JoinGameGroupDTO
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export class JoinGameGroupDTO {
|
|
|
|
@IsUUID("4")
|
|
|
|
groupId: GameGroupEntity;
|
|
|
|
}
|
|
|
|
``` |