-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
127 additions
and
60 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
syntax = "proto3"; | ||
|
||
option csharp_namespace = "HuppyService.Service.Protos"; | ||
|
||
package shared; | ||
|
||
message CommonResponse { | ||
bool IsSuccess = 1; | ||
} | ||
|
||
message UserId { | ||
uint64 Id = 1; | ||
} | ||
|
||
message ServerId { | ||
uint64 Id = 1; | ||
} | ||
|
||
message Int32 { | ||
int32 Number = 1; | ||
} | ||
|
||
message Void { } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
syntax = "proto3"; | ||
|
||
option csharp_namespace = "HuppyService.Service.Protos"; | ||
|
||
import "Protos/database.proto"; | ||
import "Protos/shared.proto"; | ||
|
||
package TicketProto; | ||
|
||
service TicketProto { | ||
rpc GetCountAsync(shared.UserId) returns (shared.Int32); | ||
rpc GetTickets(shared.Void) returns (TicketModelCollection); | ||
rpc GetUserTickets(shared.UserId) returns (TicketModelCollection); | ||
rpc GetPaginatedTickets(GetPaginatedTicketsInput) returns (TicketModelCollection); | ||
rpc GetUserPaginatedTickets(GetUserPaginatedTicketsInput) returns (TicketModelCollection); | ||
rpc GetTicket(GetTicketInput) returns (database.models.TicketModel); | ||
rpc AddTicket(AddTicketInput) returns (database.models.TicketModel); | ||
rpc RemoveTicketAsync(TicketRemoveInput) returns (shared.CommonResponse); | ||
rpc UpdateTicketAsync(TicketUpdateInput) returns (shared.CommonResponse); | ||
rpc CloseTicket(CloseTicketInput) returns (shared.CommonResponse); | ||
} | ||
|
||
message TicketRemoveInput { | ||
string TicketId = 1; | ||
} | ||
|
||
message TicketUpdateInput { | ||
string TicketId = 1; | ||
string Description = 2; | ||
} | ||
|
||
message CloseTicketInput { | ||
string TicketId = 1; | ||
string Answer = 2; | ||
} | ||
|
||
message AddTicketInput { | ||
uint64 UserId = 1; | ||
string Topic = 2; | ||
string Description = 3; | ||
} | ||
|
||
message GetTicketInput { | ||
string TicketId = 1; | ||
uint64 UserId = 2; | ||
} | ||
|
||
message GetUserPaginatedTicketsInput { | ||
uint64 UserId = 1; | ||
int32 Skip = 2; | ||
int32 Take = 3; | ||
} | ||
|
||
message GetPaginatedTicketsInput { | ||
int32 Skip = 1; | ||
int32 Take = 2; | ||
} | ||
|
||
message TicketModelCollection { | ||
repeated database.models.TicketModel TicketsModels = 1; | ||
} |
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
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
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