site is added

This commit is contained in:
병준 박 2022-08-08 08:39:49 +00:00
parent 3e2df9d4a7
commit 90d2fb4ae0
3 changed files with 126 additions and 0 deletions

1
src/ss/domain/mod.rs Normal file
View File

@ -0,0 +1 @@
pub mod site;

124
src/ss/domain/site.rs Normal file
View File

@ -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<core::network::Client>,
#[prost(message, optional, tag="2")]
pub pagination: ::core::option::Option<pagination::Pagination>,
#[prost(message, repeated, tag="3")]
pub searches: ::prost::alloc::vec::Vec<pagination::Search>,
#[prost(message, repeated, tag="4")]
pub sorts: ::prost::alloc::vec::Vec<pagination::Sort>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSitesResponse {
#[prost(message, optional, tag="1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag="2")]
pub result: ::core::option::Option<list_sites_response::Result>,
}
/// 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<domain::Site>,
}
}
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<core::network::Client>,
#[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<rpc::Error>,
#[prost(message, optional, tag="2")]
pub result: ::core::option::Option<create_site_response::Result>,
}
/// 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<domain::Site>,
}
}
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<core::network::Client>,
#[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<rpc::Error>,
#[prost(message, optional, tag="2")]
pub result: ::core::option::Option<update_site_response::Result>,
}
/// 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<domain::Site>,
}
}
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<core::network::Client>,
#[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<rpc::Error>,
#[prost(message, optional, tag="2")]
pub result: ::core::option::Option<delete_site_response::Result>,
}
/// Nested message and enum types in `DeleteSiteResponse`.
pub mod delete_site_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
}
}

View File

@ -4,3 +4,4 @@
///
///
pub mod member;
pub mod domain;