Compare commits
3 Commits
sessions
...
e252921e91
| Author | SHA1 | Date | |
|---|---|---|---|
| e252921e91 | |||
|
eb8d873290
|
|||
| 69aa45ffe6 |
10
maps.proto
10
maps.proto
@@ -24,22 +24,19 @@ message IdMessage {
|
||||
message MapResponse {
|
||||
int64 ID = 1;
|
||||
string DisplayName = 2;
|
||||
string Creator = 3;
|
||||
int32 GameID = 4;
|
||||
int64 Date = 5;
|
||||
uint64 Thumbnail = 6;
|
||||
}
|
||||
|
||||
message MapRequest {
|
||||
int64 ID = 1;
|
||||
optional string DisplayName = 2;
|
||||
optional string Creator = 3;
|
||||
optional int32 GameID = 4;
|
||||
optional int64 Date = 5;
|
||||
optional uint64 Thumbnail = 6;
|
||||
}
|
||||
|
||||
message MapFilter {
|
||||
optional string DisplayName = 2;
|
||||
optional string Creator = 3;
|
||||
optional int32 GameID = 4;
|
||||
}
|
||||
|
||||
@@ -58,5 +55,4 @@ message Pagination {
|
||||
}
|
||||
|
||||
message NullResponse {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ syntax = "proto3";
|
||||
|
||||
option go_package = "git.itzana.me/strafesnet/go-grpc/validator";
|
||||
|
||||
import "maps_extended.proto";
|
||||
|
||||
package validator;
|
||||
|
||||
service ValidatorMapfixService {
|
||||
@@ -14,6 +16,7 @@ service ValidatorMapfixService {
|
||||
rpc SetStatusValidated(MapfixID) returns (NullResponse);
|
||||
rpc SetStatusFailed(MapfixID) returns (NullResponse);
|
||||
rpc SetStatusUploaded(MapfixID) returns (NullResponse);
|
||||
rpc SetStatusReleased(MapfixReleaseRequest) returns (NullResponse);
|
||||
}
|
||||
|
||||
service ValidatorSubmissionService {
|
||||
@@ -26,6 +29,7 @@ service ValidatorSubmissionService {
|
||||
rpc SetStatusValidated(SubmissionID) returns (NullResponse);
|
||||
rpc SetStatusFailed(SubmissionID) returns (NullResponse);
|
||||
rpc SetStatusUploaded(StatusUploadedRequest) returns (NullResponse);
|
||||
rpc SetStatusReleased(maps_extended.MapCreate) returns (NullResponse);
|
||||
}
|
||||
|
||||
message MapfixID { uint64 ID = 1; }
|
||||
@@ -89,6 +93,12 @@ message StatusUploadedRequest {
|
||||
uint64 UploadedAssetID = 2;
|
||||
}
|
||||
|
||||
message MapfixReleaseRequest {
|
||||
uint64 ID = 1;
|
||||
uint64 AssetVersion = 2;
|
||||
uint32 Modes = 3;
|
||||
}
|
||||
|
||||
message NullResponse {}
|
||||
|
||||
// Operations
|
||||
|
||||
Reference in New Issue
Block a user