return frequency in match response

This commit is contained in:
Sylvain Briat 2024-04-02 11:05:41 +02:00 committed by Romain Thouvenin
parent 5696ac57bd
commit 71ac97410a
2 changed files with 12 additions and 10 deletions

View File

@ -1,10 +1,11 @@
import { ResponseBase } from '@mobicoop/ddd-library';
import { JourneyResponseDto } from './journey.response.dto';
import { Frequency } from '@modules/ad/core/domain/ad.types';
export class MatchResponseDto extends ResponseBase {
adId: string;
role: string;
frequency: string;
frequency: Frequency;
distance: number;
duration: number;
initialDistance: number;

View File

@ -58,15 +58,16 @@ enum AlgorithmType {
message Match {
string adId = 1;
string role = 2;
int32 distance = 3;
int32 duration = 4;
int32 initialDistance = 5;
int32 initialDuration = 6;
int32 distanceDetour = 7;
int32 durationDetour = 8;
double distanceDetourPercentage = 9;
double durationDetourPercentage = 10;
repeated Journey journeys = 11;
Frequency frequency = 3;
int32 distance = 4;
int32 duration = 5;
int32 initialDistance = 6;
int32 initialDuration = 7;
int32 distanceDetour = 8;
int32 durationDetour = 9;
double distanceDetourPercentage = 10;
double durationDetourPercentage = 11;
repeated Journey journeys = 12;
}
message Journey {