2022-07-12 06:43:07 +00:00
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct MemberClass {
|
2022-07-27 06:46:12 +00:00
|
|
|
#[prost(string, tag = "1")]
|
|
|
|
pub id: ::prost::alloc::string::String,
|
|
|
|
#[prost(message, optional, boxed, tag = "2")]
|
|
|
|
pub parent: ::core::option::Option<::prost::alloc::boxed::Box<MemberClass>>,
|
|
|
|
#[prost(string, tag = "3")]
|
|
|
|
pub name: ::prost::alloc::string::String,
|
|
|
|
#[prost(uint64, tag = "4")]
|
|
|
|
pub created_at: u64,
|
|
|
|
#[prost(uint64, tag = "5")]
|
|
|
|
pub updated_at: u64,
|
|
|
|
#[prost(uint64, optional, tag = "6")]
|
|
|
|
pub deleted_at: ::core::option::Option<u64>,
|
2022-07-12 06:43:07 +00:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct MemberLevel {
|
2022-07-27 06:46:12 +00:00
|
|
|
#[prost(string, tag = "1")]
|
|
|
|
pub id: ::prost::alloc::string::String,
|
|
|
|
#[prost(string, tag = "2")]
|
|
|
|
pub name: ::prost::alloc::string::String,
|
|
|
|
#[prost(uint32, tag = "3")]
|
|
|
|
pub order: u32,
|
|
|
|
#[prost(uint64, tag = "4")]
|
|
|
|
pub created_at: u64,
|
|
|
|
#[prost(uint64, tag = "5")]
|
|
|
|
pub updated_at: u64,
|
|
|
|
#[prost(uint64, optional, tag = "6")]
|
|
|
|
pub deleted_at: ::core::option::Option<u64>,
|
2022-07-12 06:43:07 +00:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct MemberSite {
|
2022-07-27 06:46:12 +00:00
|
|
|
#[prost(string, tag = "1")]
|
|
|
|
pub id: ::prost::alloc::string::String,
|
|
|
|
#[prost(string, tag = "2")]
|
|
|
|
pub url: ::prost::alloc::string::String,
|
|
|
|
#[prost(uint64, tag = "3")]
|
|
|
|
pub created_at: u64,
|
|
|
|
#[prost(uint64, tag = "4")]
|
|
|
|
pub updated_at: u64,
|
|
|
|
#[prost(uint64, optional, tag = "5")]
|
|
|
|
pub deleted_at: ::core::option::Option<u64>,
|
2022-07-12 06:43:07 +00:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct Member {
|
2022-07-27 06:46:12 +00:00
|
|
|
#[prost(string, tag = "1")]
|
|
|
|
pub id: ::prost::alloc::string::String,
|
|
|
|
#[prost(string, tag = "2")]
|
|
|
|
pub domain_id: ::prost::alloc::string::String,
|
|
|
|
#[prost(message, optional, tag = "3")]
|
|
|
|
pub member_class: ::core::option::Option<MemberClass>,
|
|
|
|
#[prost(message, optional, tag = "4")]
|
|
|
|
pub member_level: ::core::option::Option<MemberLevel>,
|
|
|
|
#[prost(message, optional, tag = "5")]
|
|
|
|
pub member_site: ::core::option::Option<MemberSite>,
|
|
|
|
#[prost(message, optional, boxed, tag = "6")]
|
|
|
|
pub referrer: ::core::option::Option<::prost::alloc::boxed::Box<Member>>,
|
|
|
|
#[prost(uint64, tag = "7")]
|
|
|
|
pub referred_count: u64,
|
|
|
|
#[prost(string, tag = "8")]
|
|
|
|
pub username: ::prost::alloc::string::String,
|
|
|
|
#[prost(string, tag = "9")]
|
|
|
|
pub nickname: ::prost::alloc::string::String,
|
|
|
|
#[prost(string, optional, tag = "10")]
|
|
|
|
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
|
|
|
|
#[prost(enumeration = "MemberState", tag = "11")]
|
|
|
|
pub state: i32,
|
|
|
|
#[prost(uint64, optional, tag = "12")]
|
|
|
|
pub state_changed_at: ::core::option::Option<u64>,
|
|
|
|
#[prost(string, optional, tag = "13")]
|
|
|
|
pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>,
|
|
|
|
#[prost(uint64, optional, tag = "14")]
|
|
|
|
pub last_signined_at: ::core::option::Option<u64>,
|
|
|
|
#[prost(uint64, tag = "15")]
|
|
|
|
pub created_at: u64,
|
|
|
|
#[prost(uint64, tag = "16")]
|
|
|
|
pub updated_at: u64,
|
|
|
|
#[prost(uint64, optional, tag = "17")]
|
|
|
|
pub deleted_at: ::core::option::Option<u64>,
|
2022-07-12 06:43:07 +00:00
|
|
|
}
|
|
|
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
|
|
|
#[repr(i32)]
|
|
|
|
pub enum MemberState {
|
2022-07-27 06:46:12 +00:00
|
|
|
None = 0,
|
|
|
|
Normal = 1,
|
|
|
|
Pending = 2,
|
|
|
|
Withdrawal = 3,
|
|
|
|
Dormancy = 4,
|
|
|
|
Blacklist = 5,
|
|
|
|
Suspended = 6,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct MemberSession {
|
|
|
|
#[prost(string, tag = "1")]
|
|
|
|
pub id: ::prost::alloc::string::String,
|
|
|
|
#[prost(message, optional, tag = "2")]
|
|
|
|
pub member: ::core::option::Option<Member>,
|
|
|
|
#[prost(string, tag = "3")]
|
|
|
|
pub data: ::prost::alloc::string::String,
|
|
|
|
#[prost(uint64, tag = "4")]
|
|
|
|
pub last_accessed_at: u64,
|
|
|
|
#[prost(uint64, tag = "5")]
|
|
|
|
pub expires_at: u64,
|
|
|
|
#[prost(uint64, tag = "6")]
|
|
|
|
pub created_at: u64,
|
2022-07-12 06:43:07 +00:00
|
|
|
}
|