56 lines
2.3 KiB
Rust
Raw Normal View History

2022-08-19 06:14:35 +00:00
const SUBJECT: &str = "bet.beteran.ss.api.game";
pub const SUBJECT_LIST_GAMES: &str = const_format::concatcp!(SUBJECT, ".ListGames");
/// subject = bet.beteran.ss.api.game.ListGames
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGamesRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<list_games_request::Request>,
}
/// Nested message and enum types in `ListGamesRequest`.
pub mod list_games_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<request::Search>,
}
/// Nested message and enum types in `Request`.
pub mod request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(uint64, optional, tag = "1")]
pub kgon_vendor_id: ::core::option::Option<u64>,
2022-08-19 06:14:35 +00:00
#[prost(string, optional, tag = "2")]
pub key_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub platform_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "4")]
pub category_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub game_type_like: ::core::option::Option<::prost::alloc::string::String>,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGamesResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_games_response::Result>,
}
/// Nested message and enum types in `ListGamesResponse`.
pub mod list_games_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, repeated, tag = "1")]
pub games: ::prost::alloc::vec::Vec<crate::models::api::game::Game>,
}
}