bug fixed
This commit is contained in:
parent
34c78e54dc
commit
3615cf08d5
136
src/c2se/backend/member_class.rs
Normal file
136
src/c2se/backend/member_class.rs
Normal file
|
@ -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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<create_member_class_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberClass>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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<protobuf::pagination::Pagination>,
|
||||||
|
#[prost(message, repeated, tag="2")]
|
||||||
|
pub searches: ::prost::alloc::vec::Vec<protobuf::pagination::Search>,
|
||||||
|
#[prost(message, repeated, tag="3")]
|
||||||
|
pub sorts: ::prost::alloc::vec::Vec<protobuf::pagination::Sort>,
|
||||||
|
#[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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<list_member_classs_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberClass>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<get_member_class_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberClass>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<update_member_class_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberClass>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<delete_member_class_response::Result>,
|
||||||
|
}
|
||||||
|
/// Nested message and enum types in `DeleteMemberClassResponse`.
|
||||||
|
pub mod delete_member_class_response {
|
||||||
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
|
pub struct Result {
|
||||||
|
}
|
||||||
|
}
|
135
src/c2se/backend/member_level.rs
Normal file
135
src/c2se/backend/member_level.rs
Normal file
|
@ -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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<create_member_level_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberLevel>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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<protobuf::pagination::Pagination>,
|
||||||
|
#[prost(message, repeated, tag="2")]
|
||||||
|
pub searches: ::prost::alloc::vec::Vec<protobuf::pagination::Search>,
|
||||||
|
#[prost(message, repeated, tag="3")]
|
||||||
|
pub sorts: ::prost::alloc::vec::Vec<protobuf::pagination::Sort>,
|
||||||
|
#[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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<list_member_levels_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberLevel>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<get_member_level_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberLevel>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<update_member_level_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberLevel>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<delete_member_level_response::Result>,
|
||||||
|
}
|
||||||
|
/// Nested message and enum types in `DeleteMemberLevelResponse`.
|
||||||
|
pub mod delete_member_level_response {
|
||||||
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
|
pub struct Result {
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,6 @@
|
||||||
pub mod identity;
|
pub mod identity;
|
||||||
pub mod member;
|
pub mod member;
|
||||||
|
pub mod member_class;
|
||||||
|
pub mod member_level;
|
||||||
pub mod site;
|
pub mod site;
|
||||||
pub mod account;
|
pub mod account;
|
||||||
|
|
|
@ -10,8 +10,6 @@ pub struct MemberClass {
|
||||||
pub created_at: u64,
|
pub created_at: u64,
|
||||||
#[prost(uint64, tag = "5")]
|
#[prost(uint64, tag = "5")]
|
||||||
pub updated_at: u64,
|
pub updated_at: u64,
|
||||||
#[prost(uint64, optional, tag = "6")]
|
|
||||||
pub deleted_at: ::core::option::Option<u64>,
|
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct MemberLevel {
|
pub struct MemberLevel {
|
||||||
|
@ -25,8 +23,6 @@ pub struct MemberLevel {
|
||||||
pub created_at: u64,
|
pub created_at: u64,
|
||||||
#[prost(uint64, tag = "5")]
|
#[prost(uint64, tag = "5")]
|
||||||
pub updated_at: u64,
|
pub updated_at: u64,
|
||||||
#[prost(uint64, optional, tag = "6")]
|
|
||||||
pub deleted_at: ::core::option::Option<u64>,
|
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Member {
|
pub struct Member {
|
||||||
|
|
147
src/ss/member/member_class.rs
Normal file
147
src/ss/member/member_class.rs
Normal file
|
@ -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<core::network::Client>,
|
||||||
|
#[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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<create_member_class_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberClass>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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<core::network::Client>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub pagination: ::core::option::Option<protobuf::pagination::Pagination>,
|
||||||
|
#[prost(message, repeated, tag="3")]
|
||||||
|
pub searches: ::prost::alloc::vec::Vec<protobuf::pagination::Search>,
|
||||||
|
#[prost(message, repeated, tag="4")]
|
||||||
|
pub sorts: ::prost::alloc::vec::Vec<protobuf::pagination::Sort>,
|
||||||
|
#[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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<list_member_classs_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberClass>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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<core::network::Client>,
|
||||||
|
#[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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<get_member_class_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberClass>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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<core::network::Client>,
|
||||||
|
#[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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<update_member_class_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberClass>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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<core::network::Client>,
|
||||||
|
#[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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<delete_member_class_response::Result>,
|
||||||
|
}
|
||||||
|
/// Nested message and enum types in `DeleteMemberClassResponse`.
|
||||||
|
pub mod delete_member_class_response {
|
||||||
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
|
pub struct Result {
|
||||||
|
}
|
||||||
|
}
|
147
src/ss/member/member_level.rs
Normal file
147
src/ss/member/member_level.rs
Normal file
|
@ -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<core::network::Client>,
|
||||||
|
#[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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<create_member_level_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberLevel>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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<core::network::Client>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub pagination: ::core::option::Option<protobuf::pagination::Pagination>,
|
||||||
|
#[prost(message, repeated, tag="3")]
|
||||||
|
pub searches: ::prost::alloc::vec::Vec<protobuf::pagination::Search>,
|
||||||
|
#[prost(message, repeated, tag="4")]
|
||||||
|
pub sorts: ::prost::alloc::vec::Vec<protobuf::pagination::Sort>,
|
||||||
|
#[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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<list_member_levels_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberLevel>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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<core::network::Client>,
|
||||||
|
#[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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<get_member_level_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberLevel>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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<core::network::Client>,
|
||||||
|
#[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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<update_member_level_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<member::MemberLevel>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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<core::network::Client>,
|
||||||
|
#[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<protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag="2")]
|
||||||
|
pub result: ::core::option::Option<delete_member_level_response::Result>,
|
||||||
|
}
|
||||||
|
/// Nested message and enum types in `DeleteMemberLevelResponse`.
|
||||||
|
pub mod delete_member_level_response {
|
||||||
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
|
pub struct Result {
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,2 +1,4 @@
|
||||||
pub mod identity;
|
pub mod identity;
|
||||||
pub mod member;
|
pub mod member;
|
||||||
|
pub mod member_class;
|
||||||
|
pub mod member_level;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user