refactor api modules
This commit is contained in:
@@ -28,12 +28,28 @@ export class AllRacesListItemDTO {
|
||||
strengthOfField!: number | null;
|
||||
}
|
||||
|
||||
export class AllRacesFilterOptionsDTO {
|
||||
@ApiProperty({ type: [{ value: String, label: String }] })
|
||||
statuses!: { value: AllRacesStatus; label: string }[];
|
||||
export class AllRacesStatusFilterDTO {
|
||||
@ApiProperty()
|
||||
value!: AllRacesStatus;
|
||||
|
||||
@ApiProperty({ type: [{ id: String, name: String }] })
|
||||
leagues!: { id: string; name: string }[];
|
||||
@ApiProperty()
|
||||
label!: string;
|
||||
}
|
||||
|
||||
export class AllRacesLeagueFilterDTO {
|
||||
@ApiProperty()
|
||||
id!: string;
|
||||
|
||||
@ApiProperty()
|
||||
name!: string;
|
||||
}
|
||||
|
||||
export class AllRacesFilterOptionsDTO {
|
||||
@ApiProperty({ type: [AllRacesStatusFilterDTO] })
|
||||
statuses!: AllRacesStatusFilterDTO[];
|
||||
|
||||
@ApiProperty({ type: [AllRacesLeagueFilterDTO] })
|
||||
leagues!: AllRacesLeagueFilterDTO[];
|
||||
}
|
||||
|
||||
export class AllRacesPageDTO {
|
||||
|
||||
Reference in New Issue
Block a user