Skip to content

Instantly share code, notes, and snippets.

@mortezadalil
Created March 24, 2022 15:43
Show Gist options
  • Save mortezadalil/9d2ffae90908cf85bdd5fd5a7af0565a to your computer and use it in GitHub Desktop.
Save mortezadalil/9d2ffae90908cf85bdd5fd5a7af0565a to your computer and use it in GitHub Desktop.
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