Skip to content

Instantly share code, notes, and snippets.

@ArminShoeibi
Last active February 9, 2021 12:57
Show Gist options
  • Save ArminShoeibi/d9892d24254396f1c703057415204043 to your computer and use it in GitHub Desktop.
Save ArminShoeibi/d9892d24254396f1c703057415204043 to your computer and use it in GitHub Desktop.
syntax = "proto3"; /* version of the protocol buffers language */
option csharp_namespace = "DNZ.TicketingSystem.GrpcServer.Protos";
message CreateTicketDto {
int32 user_id = 1;
int32 category_id = 2;
string title = 3;
string description = 4;
}
message TicketCreationResultDto {
string result_message = 1;
int32 tracking_number = 2;
}
service TicketService {
rpc CreateTicket(CreateTicketDto) returns (TicketCreationResultDto);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment