chore(api)!: updated grpc files
This commit is contained in:
@@ -7,7 +7,10 @@ import "google/protobuf/timestamp.proto";
|
||||
option go_package = "pkg/api/competition";
|
||||
|
||||
service CompetitionService {
|
||||
rpc CreateCompetition(Competition) returns (Competition);
|
||||
rpc GetCompetition(GetCompetitionRequest) returns (Competition);
|
||||
rpc EditCompetition(Competition) returns (Competition);
|
||||
rpc DeleteCompetition(DeleteCompetitionRequest) returns (DeleteCompetitionResponse);
|
||||
rpc ListCompetitions(ListCompetitionsRequest) returns (ListCompetitionsResponse);
|
||||
rpc ChangeCompetitionState(ChangeCompetitionStateRequest) returns (Competition);
|
||||
}
|
||||
@@ -51,6 +54,13 @@ message GetCompetitionRequest {
|
||||
string competition_id = 1;
|
||||
}
|
||||
|
||||
message DeleteCompetitionRequest {
|
||||
string competition_id = 1;
|
||||
}
|
||||
message DeleteCompetitionResponse {
|
||||
bool success = 1;
|
||||
}
|
||||
|
||||
message ListCompetitionsRequest {
|
||||
int32 page_size = 1;
|
||||
int32 page_token = 2;
|
||||
@@ -59,12 +69,11 @@ message ListCompetitionsRequest {
|
||||
optional bool is_participating = 4;
|
||||
optional string search_query = 5;
|
||||
}
|
||||
|
||||
message ListCompetitionsResponse {
|
||||
int32 total_count = 2;
|
||||
int32 next_page_token = 3;
|
||||
int32 total_count = 1;
|
||||
int32 next_page_token = 2;
|
||||
|
||||
repeated Competition competitions = 1;
|
||||
repeated Competition competitions = 3;
|
||||
}
|
||||
|
||||
message ChangeCompetitionStateRequest {
|
||||
|
||||
Reference in New Issue
Block a user