Go test project (1st learning step)
This commit is contained in:
28
proto/consignment/consignment.proto
Normal file
28
proto/consignment/consignment.proto
Normal file
@@ -0,0 +1,28 @@
|
||||
// shippy-service-consignment/proto/consignment/consignment.proto
|
||||
syntax = "proto3";
|
||||
|
||||
package consignment;
|
||||
|
||||
service ShippingService {
|
||||
rpc CreateConsignment(Consignment) returns (Response) {}
|
||||
}
|
||||
|
||||
message Consignment {
|
||||
string id = 1;
|
||||
string description = 2;
|
||||
int32 weight = 3;
|
||||
repeated Container containers = 4;
|
||||
string vessel_id = 5;
|
||||
}
|
||||
|
||||
message Container {
|
||||
string id = 1;
|
||||
string customer_id = 2;
|
||||
string origin = 3;
|
||||
string user_id = 4;
|
||||
}
|
||||
|
||||
message Response {
|
||||
bool created = 1;
|
||||
Consignment consignment = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user