2022-08-19 06:14:52 +00:00
|
|
|
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 {
|
2022-08-29 04:18:36 +00:00
|
|
|
optional uint64 parent_id = 1;
|
2022-08-19 06:14:52 +00:00
|
|
|
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 {
|
2022-09-01 17:17:19 +00:00
|
|
|
uint64 total_count = 1;
|
|
|
|
repeated bet.beteran.api.game.Game games = 2;
|
2022-08-19 06:14:52 +00:00
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
2022-08-29 08:21:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
message GetGameUrlRequest {
|
|
|
|
string vendor_key = 1;
|
|
|
|
string game_key = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetGameUrlResponse {
|
|
|
|
message Result {
|
|
|
|
uint64 user_id = 1;
|
2022-08-30 08:32:03 +00:00
|
|
|
double balance = 2;
|
2022-08-29 08:21:38 +00:00
|
|
|
string url = 3;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|