-
-
Save tuannguyenssu/cb585ccad7e8a808ec61ce0a2f010d5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
package GrpcUserEndpoint; | |
// Định nghĩa các services | |
service GrpcUser { | |
// Lấy user theo Id | |
rpc GetUser (GetUserRequest) returns (GetUserResponse) {} | |
} | |
// Message request cho service GetUser | |
message GetUserRequest { | |
string id = 1; | |
} | |
// Message response cho service GetUser | |
message GetUserResponse { | |
string id = 1; | |
string name = 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment