diff --git a/src/ss/domain/mod.rs b/src/ss/domain/mod.rs new file mode 100644 index 0000000..4d481aa --- /dev/null +++ b/src/ss/domain/mod.rs @@ -0,0 +1 @@ +pub mod site; diff --git a/src/ss/domain/site.rs b/src/ss/domain/site.rs new file mode 100644 index 0000000..cca04f6 --- /dev/null +++ b/src/ss/domain/site.rs @@ -0,0 +1,124 @@ +use crate::protobuf::pagination; +use crate::protobuf::rpc; +use crate::models::core; + +const SUBJECT: &str = "bet.beteran.ss.domain.site"; + +pub const SUBJECT_LIST_SITES: &str = const_format::concatcp!(SUBJECT, ".ListSites"); +/// subject = bet.beteran.ss.domain.site.ListSites; +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListSitesRequest { + #[prost(message, optional, tag="1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag="3")] + pub searches: ::prost::alloc::vec::Vec, + #[prost(message, repeated, tag="4")] + pub sorts: ::prost::alloc::vec::Vec, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListSitesResponse { + #[prost(message, optional, tag="1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `ListSitesResponse`. +pub mod list_sites_response { + use crate::models::domain; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag="1")] + pub sites: ::prost::alloc::vec::Vec, + } +} + +pub const SUBJECT_CREATE_SITE: &str = const_format::concatcp!(SUBJECT, ".CreateSite"); +/// subject = bet.beteran.ss.domain.site.CreateSite; +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateSiteRequest { + #[prost(message, optional, tag="1")] + pub client: ::core::option::Option, + #[prost(string, tag="2")] + pub url: ::prost::alloc::string::String, + #[prost(bool, tag="3")] + pub show: bool, + #[prost(bool, tag="4")] + pub can_use: bool, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateSiteResponse { + #[prost(message, optional, tag="1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `CreateSiteResponse`. +pub mod create_site_response { + use crate::models::domain; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub site: ::core::option::Option, + } +} + +pub const SUBJECT_UPDATE_SITE: &str = const_format::concatcp!(SUBJECT, ".UpdateSite"); +/// subject = bet.beteran.ss.domain.site.UpdateSite +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateSiteRequest { + #[prost(message, optional, tag="1")] + pub client: ::core::option::Option, + #[prost(string, tag="2")] + pub id: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub url: ::prost::alloc::string::String, + #[prost(bool, tag="4")] + pub show: bool, + #[prost(bool, tag="5")] + pub can_use: bool, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateSiteResponse { + #[prost(message, optional, tag="1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `UpdateSiteResponse`. +pub mod update_site_response { + use crate::models::domain; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub site: ::core::option::Option, + } +} + + +pub const SUBJECT_DELETE_SITE: &str = const_format::concatcp!(SUBJECT, ".DeleteSite"); +/// subject = bet.beteran.ss.domain.site.DeleteSite +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteSiteRequest { + #[prost(message, optional, tag="1")] + pub client: ::core::option::Option, + #[prost(string, tag="2")] + pub id: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteSiteResponse { + #[prost(message, optional, tag="1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `DeleteSiteResponse`. +pub mod delete_site_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + } +} diff --git a/src/ss/mod.rs b/src/ss/mod.rs index 9652b86..78fa834 100644 --- a/src/ss/mod.rs +++ b/src/ss/mod.rs @@ -4,3 +4,4 @@ /// /// pub mod member; +pub mod domain;