Created
February 9, 2021 18:33
-
-
Save ArminShoeibi/8d3a6e113e6920e7e5b1a06ee68203d7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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"; /* version of the protocol buffers language */ | |
| option csharp_namespace = "DNZ.TicketingSystem.GrpcServer.Protos"; | |
| /* Protobuf enumeration definitions must have a zero constant as their first field */ | |
| enum TicketStatus { | |
| NEW = 0; | |
| OPEN = 1; | |
| INPROGRESS = 3; | |
| CLOSED = 4; | |
| } | |
| 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; | |
| TicketStatus ticket_status = 3; | |
| } | |
| 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