add excludedAdId to proto and dto

This commit is contained in:
Sylvain Briat 2024-04-03 13:01:12 +02:00
parent c51c368d83
commit 0c29e522ed
2 changed files with 15 additions and 10 deletions

View File

@ -81,6 +81,10 @@ export class MatchRequestDto {
@ValidateNested({ each: true }) @ValidateNested({ each: true })
waypoints: WaypointDto[]; waypoints: WaypointDto[];
@IsUUID()
@IsOptional()
excludedAdId?: string;
@IsOptional() @IsOptional()
@IsEnum(AlgorithmType) @IsEnum(AlgorithmType)
algorithmType?: AlgorithmType; algorithmType?: AlgorithmType;

View File

@ -16,16 +16,17 @@ message MatchRequest {
repeated ScheduleItem schedule = 7; repeated ScheduleItem schedule = 7;
bool strict = 8; bool strict = 8;
repeated Waypoint waypoints = 9; repeated Waypoint waypoints = 9;
AlgorithmType algorithmType = 10; string excludedAdId = 10;
int32 remoteness = 11; AlgorithmType algorithmType = 11;
bool useProportion = 12; int32 remoteness = 12;
float proportion = 13; bool useProportion = 13;
bool useAzimuth = 14; float proportion = 14;
int32 azimuthMargin = 15; bool useAzimuth = 15;
float maxDetourDistanceRatio = 16; int32 azimuthMargin = 16;
float maxDetourDurationRatio = 17; float maxDetourDistanceRatio = 17;
optional int32 page = 18; float maxDetourDurationRatio = 18;
optional int32 perPage = 19; optional int32 page = 19;
optional int32 perPage = 20;
} }
message ScheduleItem { message ScheduleItem {