diff --git a/src/c2se/backend/member_class.rs b/src/c2se/backend/member_class.rs new file mode 100644 index 0000000..e3db5a9 --- /dev/null +++ b/src/c2se/backend/member_class.rs @@ -0,0 +1,136 @@ +use crate::protobuf; + +const SUBJECT: &str = "bet.beteran.c2se.backend.member_class"; + +pub const SUBJECT_CREATE_MEMBER_CLASS: &str = const_format::concatcp!(SUBJECT, ".CreateMemberClass"); +/// subject = bet.beteran.c2se.backend.member_class.CreateMemberClass +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberClassRequest { + #[prost(string, optional, tag="1")] + pub parent_id: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberClassResponse { + #[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 `CreateMemberClassResponse`. +pub mod create_member_class_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member_class: ::core::option::Option, + } +} + +pub const SUBJECT_LIST_MEMBER_CLASSES: &str = const_format::concatcp!(SUBJECT, ".ListMemberClasses"); +/// subject = bet.beteran.c2se.backend.member_class.ListMemberClasses +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberClassesRequest { + #[prost(message, optional, tag="1")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub searches: ::prost::alloc::vec::Vec, + #[prost(message, repeated, tag="3")] + pub sorts: ::prost::alloc::vec::Vec, + #[prost(string, optional, tag="4")] + pub name_like: ::core::option::Option<::prost::alloc::string::String>, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberClasssResponse { + #[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 `ListMemberClasssResponse`. +pub mod list_member_classs_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag="1")] + pub member_classes: ::prost::alloc::vec::Vec, + } +} + +pub const SUBJECT_GET_MEMBER_CLASS: &str = const_format::concatcp!(SUBJECT, ".GetMemberClass"); +/// subject = bet.beteran.c2se.backend.member_class.GetMemberClass +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberClassRequest { + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberClassResponse { + #[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 `GetMemberClassResponse`. +pub mod get_member_class_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member_class: ::core::option::Option, + } +} + +pub const SUBJECT_UPDATE_MEMBER_CLASS: &str = const_format::concatcp!(SUBJECT, ".UpdateMemberClass"); +/// subject = bet.beteran.c2se.backend.member_class.UpdateMemberClass +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberClassRequest { + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, + #[prost(string, optional, tag="2")] + pub parent_id: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, tag="3")] + pub name: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberClassResponse { + #[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 `UpdateMemberClassResponse`. +pub mod update_member_class_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member_class: ::core::option::Option, + } +} + +pub const SUBJECT_DELETE_MEMBER_CLASS: &str = const_format::concatcp!(SUBJECT, ".DeleteMemberClass"); +/// subject = bet.beteran.c2se.backend.member_class.DeleteMemberClass +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberClassRequest { + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberClassResponse { + #[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 `DeleteMemberClassResponse`. +pub mod delete_member_class_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + } +} diff --git a/src/c2se/backend/member_level.rs b/src/c2se/backend/member_level.rs new file mode 100644 index 0000000..647d2af --- /dev/null +++ b/src/c2se/backend/member_level.rs @@ -0,0 +1,135 @@ +use crate::protobuf; + +const SUBJECT: &str = "bet.beteran.c2se.backend.member_level"; + +pub const SUBJECT_CREATE_MEMBER_LEVEL: &str = const_format::concatcp!(SUBJECT, ".CreateMemberLevel"); +/// subject = bet.beteran.c2se.backend.member_level.CreateMemberLevel +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberLevelRequest { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + #[prost(uint32, tag="2")] + pub sort_order: u32, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberLevelResponse { + #[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 `CreateMemberLevelResponse`. +pub mod create_member_level_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member_level: ::core::option::Option, + } +} +pub const SUBJECT_LIST_MEMBER_LEVELS: &str = const_format::concatcp!(SUBJECT, ".ListMemberLevels"); +/// subject = bet.beteran.c2se.backend.member_level.ListMemberLevels +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberLevelsRequest { + #[prost(message, optional, tag="1")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub searches: ::prost::alloc::vec::Vec, + #[prost(message, repeated, tag="3")] + pub sorts: ::prost::alloc::vec::Vec, + #[prost(string, optional, tag="4")] + pub name_like: ::core::option::Option<::prost::alloc::string::String>, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberLevelsResponse { + #[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 `ListMemberLevelsResponse`. +pub mod list_member_levels_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag="1")] + pub member_levels: ::prost::alloc::vec::Vec, + } +} + +pub const SUBJECT_GET_MEMBER_LEVEL: &str = const_format::concatcp!(SUBJECT, ".GetMemberLevel"); +/// subject = bet.beteran.c2se.backend.member_level.GetMemberLevel +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberLevelRequest { + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberLevelResponse { + #[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 `GetMemberLevelResponse`. +pub mod get_member_level_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member_level: ::core::option::Option, + } +} + +pub const SUBJECT_UPDATE_MEMBER_LEVEL: &str = const_format::concatcp!(SUBJECT, ".UpdateMemberLevel"); +/// subject = bet.beteran.c2se.backend.member_level.UpdateMemberLevel +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberLevelRequest { + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, + #[prost(string, optional, tag="2")] + pub parent_id: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, tag="3")] + pub name: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberLevelResponse { + #[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 `UpdateMemberLevelResponse`. +pub mod update_member_level_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member_level: ::core::option::Option, + } +} + +pub const SUBJECT_DELETE_MEMBER_LEVEL: &str = const_format::concatcp!(SUBJECT, ".DeleteMemberLevel"); +/// subject = bet.beteran.c2se.backend.member_level.DeleteMemberLevel +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberLevelRequest { + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberLevelResponse { + #[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 `DeleteMemberLevelResponse`. +pub mod delete_member_level_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + } +} diff --git a/src/c2se/backend/mod.rs b/src/c2se/backend/mod.rs index a8ce7cd..e11dd95 100644 --- a/src/c2se/backend/mod.rs +++ b/src/c2se/backend/mod.rs @@ -1,4 +1,6 @@ pub mod identity; pub mod member; +pub mod member_class; +pub mod member_level; pub mod site; pub mod account; diff --git a/src/models/member.rs b/src/models/member.rs index a40a368..b7a8469 100644 --- a/src/models/member.rs +++ b/src/models/member.rs @@ -10,8 +10,6 @@ pub struct MemberClass { pub created_at: u64, #[prost(uint64, tag = "5")] pub updated_at: u64, - #[prost(uint64, optional, tag = "6")] - pub deleted_at: ::core::option::Option, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct MemberLevel { @@ -25,8 +23,6 @@ pub struct MemberLevel { pub created_at: u64, #[prost(uint64, tag = "5")] pub updated_at: u64, - #[prost(uint64, optional, tag = "6")] - pub deleted_at: ::core::option::Option, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct Member { diff --git a/src/ss/member/member_class.rs b/src/ss/member/member_class.rs new file mode 100644 index 0000000..25357ab --- /dev/null +++ b/src/ss/member/member_class.rs @@ -0,0 +1,147 @@ +use crate::models::core; +use crate::protobuf; + +const SUBJECT: &str = "bet.beteran.ss.member_class"; + + +pub const SUBJECT_CREATE_MEMBER_CLASS: &str = const_format::concatcp!(SUBJECT, ".CreateMemberClass"); +/// subject = bet.beteran.ss.member_class.CreateMemberClass +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberClassRequest { + #[prost(message, optional, tag="1")] + pub client: ::core::option::Option, + #[prost(string, optional, tag="2")] + pub parent_id: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, tag="3")] + pub name: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberClassResponse { + #[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 `CreateMemberClassResponse`. +pub mod create_member_class_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member_class: ::core::option::Option, + } +} + +pub const SUBJECT_LIST_MEMBER_CLASSES: &str = const_format::concatcp!(SUBJECT, ".ListMemberClasses"); +/// subject = bet.beteran.ss.member_class.ListMemberClasses +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberClassesRequest { + #[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, + #[prost(string, optional, tag="5")] + pub name_like: ::core::option::Option<::prost::alloc::string::String>, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberClasssResponse { + #[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 `ListMemberClasssResponse`. +pub mod list_member_classs_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag="1")] + pub member_classes: ::prost::alloc::vec::Vec, + } +} +pub const SUBJECT_GET_MEMBER_CLASS: &str = const_format::concatcp!(SUBJECT, ".GetMemberClass"); +/// subject = bet.beteran.ss.member_class.GetMemberClass +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberClassRequest { + #[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 GetMemberClassResponse { + #[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 `GetMemberClassResponse`. +pub mod get_member_class_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member_class: ::core::option::Option, + } +} + +pub const SUBJECT_UPDATE_MEMBER_CLASS: &str = const_format::concatcp!(SUBJECT, ".UpdateMemberClass"); +/// subject = bet.beteran.ss.member_class.UpdateMemberClass +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberClassRequest { + #[prost(message, optional, tag="1")] + pub client: ::core::option::Option, + #[prost(string, tag="2")] + pub id: ::prost::alloc::string::String, + #[prost(string, optional, tag="3")] + pub parent_id: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, tag="4")] + pub name: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberClassResponse { + #[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 `UpdateMemberClassResponse`. +pub mod update_member_class_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member_class: ::core::option::Option, + } +} + +pub const SUBJECT_DELETE_MEMBER_CLASS: &str = const_format::concatcp!(SUBJECT, ".DeleteMemberClass"); +/// subject = bet.beteran.ss.member_class.DeleteMemberClass +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberClassRequest { + #[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 DeleteMemberClassResponse { + #[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 `DeleteMemberClassResponse`. +pub mod delete_member_class_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + } +} diff --git a/src/ss/member/member_level.rs b/src/ss/member/member_level.rs new file mode 100644 index 0000000..4461f47 --- /dev/null +++ b/src/ss/member/member_level.rs @@ -0,0 +1,147 @@ +use crate::models::core; +use crate::protobuf; + +const SUBJECT: &str = "bet.beteran.ss.member_level"; + + +pub const SUBJECT_CREATE_MEMBER_LEVEL: &str = const_format::concatcp!(SUBJECT, ".CreateMemberLevel"); +/// subject = bet.beteran.ss.member_level.CreateMemberLevel +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberLevelRequest { + #[prost(message, optional, tag="1")] + pub client: ::core::option::Option, + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + #[prost(uint32, tag="3")] + pub sort_order: u32, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberLevelResponse { + #[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 `CreateMemberLevelResponse`. +pub mod create_member_level_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member_level: ::core::option::Option, + } +} + +pub const SUBJECT_LIST_MEMBER_LEVELS: &str = const_format::concatcp!(SUBJECT, ".ListMemberLevels"); +/// subject = bet.beteran.ss.member_level.ListMemberLevels +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberLevelsRequest { + #[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, + #[prost(string, optional, tag="5")] + pub name_like: ::core::option::Option<::prost::alloc::string::String>, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberLevelsResponse { + #[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 `ListMemberLevelsResponse`. +pub mod list_member_levels_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag="1")] + pub member_levels: ::prost::alloc::vec::Vec, + } +} +pub const SUBJECT_GET_MEMBER_LEVEL: &str = const_format::concatcp!(SUBJECT, ".GetMemberLevel"); +/// subject = bet.beteran.ss.member_level.GetMemberLevel +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberLevelRequest { + #[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 GetMemberLevelResponse { + #[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 `GetMemberLevelResponse`. +pub mod get_member_level_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member_level: ::core::option::Option, + } +} + +pub const SUBJECT_UPDATE_MEMBER_LEVEL: &str = const_format::concatcp!(SUBJECT, ".UpdateMemberLevel"); +/// subject = bet.beteran.ss.member_level.UpdateMemberLevel +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberLevelRequest { + #[prost(message, optional, tag="1")] + pub client: ::core::option::Option, + #[prost(string, tag="2")] + pub id: ::prost::alloc::string::String, + #[prost(string, optional, tag="3")] + pub parent_id: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, tag="4")] + pub name: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberLevelResponse { + #[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 `UpdateMemberLevelResponse`. +pub mod update_member_level_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member_level: ::core::option::Option, + } +} + +pub const SUBJECT_DELETE_MEMBER_LEVEL: &str = const_format::concatcp!(SUBJECT, ".DeleteMemberLevel"); +/// subject = bet.beteran.ss.member_level.DeleteMemberLevel +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberLevelRequest { + #[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 DeleteMemberLevelResponse { + #[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 `DeleteMemberLevelResponse`. +pub mod delete_member_level_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + } +} diff --git a/src/ss/member/mod.rs b/src/ss/member/mod.rs index f764bbb..ea46069 100644 --- a/src/ss/member/mod.rs +++ b/src/ss/member/mod.rs @@ -1,2 +1,4 @@ pub mod identity; pub mod member; +pub mod member_class; +pub mod member_level;