Created
March 24, 2022 15:43
-
-
Save mortezadalil/9d2ffae90908cf85bdd5fd5a7af0565a 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"; | |
option csharp_namespace = "Discount.Api.Grpc"; | |
package price; | |
// The greeting service definition. | |
service Price { | |
// Sends a greeting | |
rpc GetPrice (PriceRequest) returns (PriceReply); | |
} | |
// The request message containing the user's name. | |
message PriceRequest { | |
int32 id=1; | |
} | |
// The response message containing the greetings. | |
message PriceReply { | |
int32 id=1; | |
int64 amount=2; | |
int64 currentAmount=3; | |
string errorMessage=4; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment