snapshot of https://github.com/ThreeDotsLabs/watermill.git (master, 2026-09-15; blobs > 131072B omitted)
Some checks failed
master / ci (push) Failing after 0s
Some checks failed
master / ci (push) Failing after 0s
This commit is contained in:
35
_examples/basic/5-cqrs-protobuf/proto/messages.proto
Normal file
35
_examples/basic/5-cqrs-protobuf/proto/messages.proto
Normal file
@@ -0,0 +1,35 @@
|
||||
syntax = "proto3";
|
||||
package main;
|
||||
|
||||
option go_package = "./main";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
message BookRoom {
|
||||
string room_id = 1;
|
||||
string guest_name = 2;
|
||||
|
||||
google.protobuf.Timestamp start_date = 4;
|
||||
google.protobuf.Timestamp end_date = 5;
|
||||
}
|
||||
|
||||
message RoomBooked {
|
||||
string reservation_id = 1;
|
||||
string room_id = 2;
|
||||
string guest_name = 3;
|
||||
int64 price = 4;
|
||||
|
||||
google.protobuf.Timestamp start_date = 5;
|
||||
google.protobuf.Timestamp end_date = 6;
|
||||
}
|
||||
|
||||
message OrderBeer {
|
||||
string room_id = 1;
|
||||
int64 count = 2;
|
||||
}
|
||||
|
||||
|
||||
message BeerOrdered {
|
||||
string room_id = 1;
|
||||
int64 count = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user