Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: generate read ticket proto #27

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 156 additions & 19 deletions proto/ticket/ticket.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion proto/ticket/ticket.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,21 @@ option go_package = "github.com/w-h-a/pkg/proto/ticket";
message Ticket {
string title = 1;
string price = 2;
string userId = 3;
}

// create request/response
message CreateRequest {
Ticket ticket = 1;
}

message CreateResponse {}
message CreateResponse {}

// read request/response
message ReadRequest {
string suffix = 1;
}

message ReadResponse {
repeated Ticket tickets = 1;
}