Files
protobufs/maps.proto
Rhys Lloyd 69aa45ffe6
All checks were successful
continuous-integration/drone/push Build is passing
Cut Down Maps Fields (#5)
Remove fields from MapResponse and other structs that will not be used in embedded contexts.

Reviewed-on: #5
Co-authored-by: Rhys Lloyd <krakow20@gmail.com>
Co-committed-by: Rhys Lloyd <krakow20@gmail.com>
2025-08-07 00:39:45 +00:00

59 lines
1.0 KiB
Protocol Buffer

syntax = "proto3";
option go_package = "git.itzana.me/strafesnet/go-grpc/maps";
package maps;
service MapsService {
rpc Get(IdMessage) returns (MapResponse);
rpc GetList(IdList) returns (MapList);
rpc Update(MapRequest) returns (NullResponse);
rpc Create(MapRequest) returns (IdMessage);
rpc Delete(IdMessage) returns (NullResponse);
rpc List(ListRequest) returns (MapList);
}
message IdList {
repeated int64 ID = 1;
}
message IdMessage {
int64 ID = 1;
}
message MapResponse {
int64 ID = 1;
string DisplayName = 2;
int32 GameID = 4;
uint32 Thumbnail = 6;
}
message MapRequest {
int64 ID = 1;
optional string DisplayName = 2;
optional int32 GameID = 4;
optional uint32 Thumbnail = 6;
}
message MapFilter {
optional string DisplayName = 2;
optional int32 GameID = 4;
}
message MapList {
repeated MapResponse Maps = 1;
}
message ListRequest {
MapFilter Filter = 1;
Pagination Page = 2;
}
message Pagination {
int32 Size = 1;
int32 Number = 2;
}
message NullResponse {
}