@devline-smart-taxi/common 2.3.63 → 2.3.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/proto/trip.proto +11 -0
- package/package.json +1 -1
package/dist/proto/trip.proto
CHANGED
|
@@ -19,6 +19,8 @@ service TripService {
|
|
|
19
19
|
rpc GetMyTrips (GetMyTripsRequest) returns (TripListResponse);
|
|
20
20
|
rpc GetTripById (GetTripByIdRequest) returns (TripDetailResponse);
|
|
21
21
|
rpc CancelTrip (CancelTripRequest) returns (TripResponse);
|
|
22
|
+
// INTER-SERVICE
|
|
23
|
+
rpc CheckDriverHasActiveTrip (CheckDriverHasActiveTripRequest) returns (CheckDriverHasActiveTripResponse);
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
// ==========================================
|
|
@@ -58,6 +60,10 @@ message CreateTripRequest {
|
|
|
58
60
|
optional string pickupAddress = 10;
|
|
59
61
|
}
|
|
60
62
|
|
|
63
|
+
message CheckDriverHasActiveTripRequest {
|
|
64
|
+
string driverId = 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
61
67
|
message TripActionRequest {
|
|
62
68
|
string tripId = 1;
|
|
63
69
|
string driverId = 2;
|
|
@@ -111,6 +117,11 @@ message TripFinishResponse {
|
|
|
111
117
|
int32 statusCode = 6;
|
|
112
118
|
}
|
|
113
119
|
|
|
120
|
+
message CheckDriverHasActiveTripResponse {
|
|
121
|
+
bool hasActiveTrip = 1;
|
|
122
|
+
optional string tripId = 2;
|
|
123
|
+
}
|
|
124
|
+
|
|
114
125
|
// --- History ---
|
|
115
126
|
|
|
116
127
|
message TripListItem {
|