mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 04:12:40 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fef0779aaa | ||
|
|
fb3f1cf4df | ||
|
|
703865dc38 | ||
|
|
75bb82094d | ||
|
|
8d2964659b | ||
|
|
8eb1b51457 |
@@ -181,7 +181,6 @@ If the matching is successful, you will get a result, containing :
|
||||
- **page**: the number of the page that is returned (may be different than the number of the required page, if number of results does not match with perPage parameter)
|
||||
- **perPage**: the number of results per page (as it may not be specified in the request)
|
||||
- **data**: an array of the results themselves, each including:
|
||||
- **id**: an id for the result
|
||||
- **adId**: the id of the ad that matches
|
||||
- **role**: the role of the ad owner in that match
|
||||
- **distance**: the distance in metres of the resulting carpool
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@mobicoop/matcher",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@mobicoop/matcher",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.2",
|
||||
"license": "AGPL",
|
||||
"dependencies": {
|
||||
"@grpc/grpc-js": "^1.9.9",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mobicoop/matcher",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.2",
|
||||
"description": "Mobicoop V3 Matcher",
|
||||
"author": "sbriat",
|
||||
"private": true,
|
||||
|
||||
@@ -32,6 +32,7 @@ export class MatchGrpcController {
|
||||
@UseInterceptors(CacheInterceptor)
|
||||
@GrpcMethod('MatcherService', 'Match')
|
||||
async match(data: MatchRequestDto): Promise<MatchingPaginatedResponseDto> {
|
||||
console.log(data);
|
||||
try {
|
||||
const matchingResult: MatchingResult = await this.queryBus.execute(
|
||||
new MatchQuery(data, this.routeProvider),
|
||||
|
||||
@@ -24,9 +24,8 @@ message MatchRequest {
|
||||
int32 azimuthMargin = 15;
|
||||
float maxDetourDistanceRatio = 16;
|
||||
float maxDetourDurationRatio = 17;
|
||||
int32 identifier = 18;
|
||||
optional int32 page = 19;
|
||||
optional int32 perPage = 20;
|
||||
optional int32 page = 18;
|
||||
optional int32 perPage = 19;
|
||||
}
|
||||
|
||||
message ScheduleItem {
|
||||
|
||||
Reference in New Issue
Block a user