This commit is contained in:
Maxime 2024-07-26 11:21:05 +02:00
parent 15b04da26f
commit ea9450c23f
2 changed files with 5 additions and 6 deletions

View File

@ -2,8 +2,6 @@ syntax = "proto3";
option go_package = "git.coopgo.io/coopgo-platform/solidarity-service/servers/grpc/proto"; option go_package = "git.coopgo.io/coopgo-platform/solidarity-service/servers/grpc/proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
message Feature { message Feature {
double lat = 1; double lat = 1;
double long = 2; double long = 2;
@ -42,6 +40,7 @@ message PunctualAvailabilitySlot {
string startTime = 2; string startTime = 2;
string endTime = 3; string endTime = 3;
} }
message RegularAvailabilitySlot { message RegularAvailabilitySlot {
DayOfWeek dayOfWeek = 1; DayOfWeek dayOfWeek = 1;
string startTime = 2; string startTime = 2;
@ -68,7 +67,7 @@ message BookingRequest {
google.protobuf.Timestamp pickup_date = 7; google.protobuf.Timestamp pickup_date = 7;
} }
message Booking { message BookingSilvermobi {
string id = 1; string id = 1;
User driver = 2; User driver = 2;
User passenger = 3; User passenger = 3;

View File

@ -47,7 +47,7 @@ message CreateBookingRequest {
BookingRequest booking = 1; BookingRequest booking = 1;
} }
message CreateBookingResponse { message CreateBookingResponse {
Booking booking = 1; BookingSilvermobi booking = 1;
} }
message UpdateBookingRequest { message UpdateBookingRequest {
@ -67,7 +67,7 @@ message GetBookingRequest {
message GetBookingResponse { message GetBookingResponse {
Booking booking = 1; BookingSilvermobi booking = 1;
} }
message GetBookingsByStatusRequest{ message GetBookingsByStatusRequest{
@ -86,5 +86,5 @@ message DriverJourneysResponse {
} }
message GetBookingsByStatusResponse{ message GetBookingsByStatusResponse{
repeated Booking booking = 1; repeated BookingSilvermobi booking = 1;
} }