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: add proto for payment service #48

Merged
merged 1 commit into from
Jul 17, 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
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ proto-ticket:
proto-order:
protoc proto/order/*.proto --go_out=paths=source_relative:. --proto_path=.

.PHONY: proto-payment
proto-payment:
protoc proto/payment/*.proto --go_out=paths=source_relative:. --proto_path=.

.PHONY: proto-greeter
proto-greeter:
protoc examples/greeter/proto/*.proto --go_out=paths=source_relative:. --proto_path=.
Expand Down
280 changes: 280 additions & 0 deletions proto/payment/payment.pb.go

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

19 changes: 19 additions & 0 deletions proto/payment/payment.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
syntax = "proto3";

package payment;

option go_package = "github.com/w-h-a/pkg/proto/payment";

// domain
message Payment {
string paymentId = 2;
string orderId = 1;
}

// create request/response
message CreateRequest {
string orderId = 1;
string token = 2;
}

message CreateResponse {}