beteran-protobuf/proto/ss/api/game.proto

57 lines
1.3 KiB
Protocol Buffer

syntax = "proto3";
package bet.beteran.ss.api.game;
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/core/network.proto";
import "models/api/game.proto";
// subject = bet.beteran.ss.api.game.ListGames
message ListGamesRequest {
message Request {
message Search {
optional uint64 parent_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;
}
bet.beteran.core.network.Client client = 1;
Request request = 2;
}
message ListGamesResponse {
message Result {
repeated bet.beteran.api.game.Game games = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.api.game.GetGameUrl
message GetGameUrlRequest {
message Request {
string vendor_key = 1;
string game_key = 2;
}
bet.beteran.core.network.Client client = 1;
Request request = 2;
}
message GetGameUrlResponse {
message Result {
uint64 user_id = 1;
uint64 balance = 2;
string url = 3;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}