client is changed
This commit is contained in:
parent
9390008044
commit
ae71cd9e1d
|
@ -1,11 +1,11 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Serialize, Deserialize, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message, Serialize, Deserialize)]
|
||||
pub struct Client {
|
||||
#[prost(string, optional, tag = "1")]
|
||||
pub site_url: ::core::option::Option<::prost::alloc::string::String>,
|
||||
#[prost(uint64, tag = "2")]
|
||||
pub client_id: u64,
|
||||
#[prost(string, tag = "3")]
|
||||
#[prost(string, tag = "1")]
|
||||
pub client_ip: ::prost::alloc::string::String,
|
||||
#[prost(string, optional, tag = "2")]
|
||||
pub site_url: ::core::option::Option<::prost::alloc::string::String>,
|
||||
#[prost(string, optional, tag = "3")]
|
||||
pub access_token: ::core::option::Option<::prost::alloc::string::String>,
|
||||
}
|
||||
|
|
|
@ -1,91 +1,107 @@
|
|||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct MemberClass {
|
||||
#[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>,
|
||||
#[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>,
|
||||
}
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct MemberLevel {
|
||||
#[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>,
|
||||
#[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>,
|
||||
}
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct MemberSite {
|
||||
#[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>,
|
||||
#[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>,
|
||||
}
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct Member {
|
||||
#[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>,
|
||||
#[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>,
|
||||
}
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
||||
#[repr(i32)]
|
||||
pub enum MemberState {
|
||||
None = 0,
|
||||
Normal = 1,
|
||||
Pending = 2,
|
||||
Withdrawal = 3,
|
||||
Dormancy = 4,
|
||||
Blacklist = 5,
|
||||
Suspended = 6,
|
||||
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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user