136 lines
5.3 KiB
Rust
136 lines
5.3 KiB
Rust
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 {
|
|
}
|
|
}
|