Skip to content

Commit

Permalink
feat: add proto for payment service
Browse files Browse the repository at this point in the history
  • Loading branch information
w-h-a committed Jul 17, 2024
1 parent ba6eb56 commit 7e748ee
Show file tree
Hide file tree
Showing 3 changed files with 303 additions and 0 deletions.
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 {}

0 comments on commit 7e748ee

Please sign in to comment.