change Booking in BookingSilvermobi in proto folder
This commit is contained in:
parent
ac8d9fe1fc
commit
1630105fb6
|
@ -20,12 +20,12 @@ storage:
|
|||
|
||||
services:
|
||||
grpc:
|
||||
ip: 10.73.187.58 #192.168.1.25
|
||||
ip: localhost #192.168.1.25
|
||||
enable: true
|
||||
port: 8089
|
||||
solidarity-api:
|
||||
enable: true
|
||||
address: 10.73.187.58:9999 #192.168.1.25:9999
|
||||
address: localhost:9999 #192.168.1.25:9999
|
||||
|
||||
routing:
|
||||
type: valhalla
|
||||
|
|
2
go.mod
2
go.mod
|
@ -16,7 +16,7 @@ require (
|
|||
google.golang.org/protobuf v1.33.0
|
||||
)
|
||||
|
||||
require (
|
||||
require (
|
||||
github.com/fsnotify/fsnotify v1.7.0 // indirect
|
||||
github.com/golang/snappy v0.0.1 // indirect
|
||||
github.com/hashicorp/hcl v1.0.0 // indirect
|
||||
|
|
|
@ -870,7 +870,7 @@ func (*Booking) Descriptor() ([]byte, []int) {
|
|||
func (x *Booking) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ message BookingRequest {
|
|||
google.protobuf.Timestamp pickup_date = 7;
|
||||
}
|
||||
|
||||
message Booking {
|
||||
message BookingSilvermobi {
|
||||
string id = 1;
|
||||
User driver = 2;
|
||||
User passenger = 3;
|
||||
|
@ -80,7 +80,7 @@ message Booking {
|
|||
optional int64 distance = 9;
|
||||
Price price = 10;
|
||||
optional Car car = 11;
|
||||
google.protobuf.Timestamp pickup_date = 12;
|
||||
google.protobuf.Timestamp pickup_date = 12;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -337,7 +337,7 @@ func (*CreateBookingRequest) Descriptor() ([]byte, []int) {
|
|||
}
|
||||
|
||||
func (x *CreateBookingRequest) GetBooking() *BookingRequest {
|
||||
if x != nil {
|
||||
if x != nil {
|
||||
return x.Booking
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue