31 lines
754 B
Protocol Buffer
31 lines
754 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package bet.beteran.c2se.api.game;
|
|
|
|
import "protobuf/rpc.proto";
|
|
import "protobuf/pagination.proto";
|
|
import "models/core/network.proto";
|
|
|
|
import "models/api/game.proto";
|
|
|
|
message ListGamesRequest {
|
|
message Search {
|
|
optional uint64 vendor_id = 1;
|
|
optional string key_like = 2;
|
|
optional string platform_like = 3;
|
|
optional string category_like = 4;
|
|
optional string game_type_like = 5;
|
|
}
|
|
optional bet.protobuf.pagination.Pagination pagination = 1;
|
|
repeated bet.protobuf.pagination.Sort sorts = 2;
|
|
optional Search search = 3;
|
|
}
|
|
|
|
message ListGamesResponse {
|
|
message Result {
|
|
repeated bet.beteran.api.game.Game games = 1;
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|