Compare commits
4 Commits
556f2d5c38
...
440ba8c242
| Author | SHA1 | Date | |
|---|---|---|---|
|
440ba8c242
|
|||
|
522731d92a
|
|||
|
b820089a93
|
|||
|
d9db4fefb8
|
22
maps.proto
22
maps.proto
@@ -25,31 +25,22 @@ message MapResponse {
|
||||
int64 ID = 1;
|
||||
string DisplayName = 2;
|
||||
string Creator = 3;
|
||||
uint32 GameID = 4;
|
||||
int32 GameID = 4;
|
||||
int64 Date = 5;
|
||||
int64 CreatedAt = 6;
|
||||
int64 UpdatedAt = 7;
|
||||
uint64 Submitter = 8;
|
||||
uint64 Thumbnail = 9;
|
||||
uint64 AssetVersion = 10;
|
||||
uint32 LoadCount = 11;
|
||||
uint32 Modes = 12;
|
||||
}
|
||||
|
||||
message MapRequest {
|
||||
int64 ID = 1;
|
||||
optional string DisplayName = 2;
|
||||
optional string Creator = 3;
|
||||
optional uint32 GameID = 4;
|
||||
optional int32 GameID = 4;
|
||||
optional int64 Date = 5;
|
||||
optional uint64 Submitter = 6;
|
||||
}
|
||||
|
||||
message MapFilter {
|
||||
optional string DisplayName = 2;
|
||||
optional string Creator = 3;
|
||||
optional uint32 GameID = 4;
|
||||
optional uint64 Submitter = 5;
|
||||
optional int32 GameID = 4;
|
||||
}
|
||||
|
||||
message MapList {
|
||||
@@ -62,9 +53,10 @@ message ListRequest {
|
||||
}
|
||||
|
||||
message Pagination {
|
||||
uint32 Size = 1;
|
||||
uint32 Number = 2;
|
||||
int32 Size = 1;
|
||||
int32 Number = 2;
|
||||
}
|
||||
|
||||
message NullResponse {
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "git.itzana.me/strafesnet/go-grpc/maps_embedded";
|
||||
option go_package = "git.itzana.me/strafesnet/go-grpc/maps_extended";
|
||||
|
||||
package maps_embedded;
|
||||
package maps_extended;
|
||||
|
||||
service MapsService {
|
||||
rpc Get(IdMessage) returns (MapResponse);
|
||||
@@ -25,22 +25,31 @@ message MapResponse {
|
||||
int64 ID = 1;
|
||||
string DisplayName = 2;
|
||||
string Creator = 3;
|
||||
int32 GameID = 4;
|
||||
uint32 GameID = 4;
|
||||
int64 Date = 5;
|
||||
int64 CreatedAt = 6;
|
||||
int64 UpdatedAt = 7;
|
||||
uint64 Submitter = 8;
|
||||
uint64 Thumbnail = 9;
|
||||
uint64 AssetVersion = 10;
|
||||
uint32 LoadCount = 11;
|
||||
uint32 Modes = 12;
|
||||
}
|
||||
|
||||
message MapRequest {
|
||||
int64 ID = 1;
|
||||
optional string DisplayName = 2;
|
||||
optional string Creator = 3;
|
||||
optional int32 GameID = 4;
|
||||
optional uint32 GameID = 4;
|
||||
optional int64 Date = 5;
|
||||
optional uint64 Submitter = 6;
|
||||
}
|
||||
|
||||
message MapFilter {
|
||||
optional string DisplayName = 2;
|
||||
optional string Creator = 3;
|
||||
optional int32 GameID = 4;
|
||||
optional uint32 GameID = 4;
|
||||
optional uint64 Submitter = 5;
|
||||
}
|
||||
|
||||
message MapList {
|
||||
@@ -53,10 +62,9 @@ message ListRequest {
|
||||
}
|
||||
|
||||
message Pagination {
|
||||
int32 Size = 1;
|
||||
int32 Number = 2;
|
||||
uint32 Size = 1;
|
||||
uint32 Number = 2;
|
||||
}
|
||||
|
||||
message NullResponse {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user