client is changed
This commit is contained in:
parent
9390008044
commit
ae71cd9e1d
|
@ -1,11 +1,11 @@
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Serialize, Deserialize, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message, Serialize, Deserialize)]
|
||||||
pub struct Client {
|
pub struct Client {
|
||||||
#[prost(string, optional, tag = "1")]
|
#[prost(string, tag = "1")]
|
||||||
pub site_url: ::core::option::Option<::prost::alloc::string::String>,
|
|
||||||
#[prost(uint64, tag = "2")]
|
|
||||||
pub client_id: u64,
|
|
||||||
#[prost(string, tag = "3")]
|
|
||||||
pub client_ip: ::prost::alloc::string::String,
|
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)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct MemberClass {
|
pub struct MemberClass {
|
||||||
#[prost(string, tag="1")]
|
#[prost(string, tag = "1")]
|
||||||
pub id: ::prost::alloc::string::String,
|
pub id: ::prost::alloc::string::String,
|
||||||
#[prost(message, optional, boxed, tag="2")]
|
#[prost(message, optional, boxed, tag = "2")]
|
||||||
pub parent: ::core::option::Option<::prost::alloc::boxed::Box<MemberClass>>,
|
pub parent: ::core::option::Option<::prost::alloc::boxed::Box<MemberClass>>,
|
||||||
#[prost(string, tag="3")]
|
#[prost(string, tag = "3")]
|
||||||
pub name: ::prost::alloc::string::String,
|
pub name: ::prost::alloc::string::String,
|
||||||
#[prost(uint64, tag="4")]
|
#[prost(uint64, tag = "4")]
|
||||||
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")]
|
#[prost(uint64, optional, tag = "6")]
|
||||||
pub deleted_at: ::core::option::Option<u64>,
|
pub deleted_at: ::core::option::Option<u64>,
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct MemberLevel {
|
pub struct MemberLevel {
|
||||||
#[prost(string, tag="1")]
|
#[prost(string, tag = "1")]
|
||||||
pub id: ::prost::alloc::string::String,
|
pub id: ::prost::alloc::string::String,
|
||||||
#[prost(string, tag="2")]
|
#[prost(string, tag = "2")]
|
||||||
pub name: ::prost::alloc::string::String,
|
pub name: ::prost::alloc::string::String,
|
||||||
#[prost(uint32, tag="3")]
|
#[prost(uint32, tag = "3")]
|
||||||
pub order: u32,
|
pub order: u32,
|
||||||
#[prost(uint64, tag="4")]
|
#[prost(uint64, tag = "4")]
|
||||||
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")]
|
#[prost(uint64, optional, tag = "6")]
|
||||||
pub deleted_at: ::core::option::Option<u64>,
|
pub deleted_at: ::core::option::Option<u64>,
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct MemberSite {
|
pub struct MemberSite {
|
||||||
#[prost(string, tag="1")]
|
#[prost(string, tag = "1")]
|
||||||
pub id: ::prost::alloc::string::String,
|
pub id: ::prost::alloc::string::String,
|
||||||
#[prost(string, tag="2")]
|
#[prost(string, tag = "2")]
|
||||||
pub url: ::prost::alloc::string::String,
|
pub url: ::prost::alloc::string::String,
|
||||||
#[prost(uint64, tag="3")]
|
#[prost(uint64, tag = "3")]
|
||||||
pub created_at: u64,
|
pub created_at: u64,
|
||||||
#[prost(uint64, tag="4")]
|
#[prost(uint64, tag = "4")]
|
||||||
pub updated_at: u64,
|
pub updated_at: u64,
|
||||||
#[prost(uint64, optional, tag="5")]
|
#[prost(uint64, optional, tag = "5")]
|
||||||
pub deleted_at: ::core::option::Option<u64>,
|
pub deleted_at: ::core::option::Option<u64>,
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Member {
|
pub struct Member {
|
||||||
#[prost(string, tag="1")]
|
#[prost(string, tag = "1")]
|
||||||
pub id: ::prost::alloc::string::String,
|
pub id: ::prost::alloc::string::String,
|
||||||
#[prost(string, tag="2")]
|
#[prost(string, tag = "2")]
|
||||||
pub domain_id: ::prost::alloc::string::String,
|
pub domain_id: ::prost::alloc::string::String,
|
||||||
#[prost(message, optional, tag="3")]
|
#[prost(message, optional, tag = "3")]
|
||||||
pub member_class: ::core::option::Option<MemberClass>,
|
pub member_class: ::core::option::Option<MemberClass>,
|
||||||
#[prost(message, optional, tag="4")]
|
#[prost(message, optional, tag = "4")]
|
||||||
pub member_level: ::core::option::Option<MemberLevel>,
|
pub member_level: ::core::option::Option<MemberLevel>,
|
||||||
#[prost(message, optional, tag="5")]
|
#[prost(message, optional, tag = "5")]
|
||||||
pub member_site: ::core::option::Option<MemberSite>,
|
pub member_site: ::core::option::Option<MemberSite>,
|
||||||
#[prost(message, optional, boxed, tag="6")]
|
#[prost(message, optional, boxed, tag = "6")]
|
||||||
pub referrer: ::core::option::Option<::prost::alloc::boxed::Box<Member>>,
|
pub referrer: ::core::option::Option<::prost::alloc::boxed::Box<Member>>,
|
||||||
#[prost(uint64, tag="7")]
|
#[prost(uint64, tag = "7")]
|
||||||
pub referred_count: u64,
|
pub referred_count: u64,
|
||||||
#[prost(string, tag="8")]
|
#[prost(string, tag = "8")]
|
||||||
pub username: ::prost::alloc::string::String,
|
pub username: ::prost::alloc::string::String,
|
||||||
#[prost(string, tag="9")]
|
#[prost(string, tag = "9")]
|
||||||
pub nickname: ::prost::alloc::string::String,
|
pub nickname: ::prost::alloc::string::String,
|
||||||
#[prost(string, optional, tag="10")]
|
#[prost(string, optional, tag = "10")]
|
||||||
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
|
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(enumeration="MemberState", tag="11")]
|
#[prost(enumeration = "MemberState", tag = "11")]
|
||||||
pub state: i32,
|
pub state: i32,
|
||||||
#[prost(uint64, optional, tag="12")]
|
#[prost(uint64, optional, tag = "12")]
|
||||||
pub state_changed_at: ::core::option::Option<u64>,
|
pub state_changed_at: ::core::option::Option<u64>,
|
||||||
#[prost(string, optional, tag="13")]
|
#[prost(string, optional, tag = "13")]
|
||||||
pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>,
|
pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(uint64, optional, tag="14")]
|
#[prost(uint64, optional, tag = "14")]
|
||||||
pub last_signined_at: ::core::option::Option<u64>,
|
pub last_signined_at: ::core::option::Option<u64>,
|
||||||
#[prost(uint64, tag="15")]
|
#[prost(uint64, tag = "15")]
|
||||||
pub created_at: u64,
|
pub created_at: u64,
|
||||||
#[prost(uint64, tag="16")]
|
#[prost(uint64, tag = "16")]
|
||||||
pub updated_at: u64,
|
pub updated_at: u64,
|
||||||
#[prost(uint64, optional, tag="17")]
|
#[prost(uint64, optional, tag = "17")]
|
||||||
pub deleted_at: ::core::option::Option<u64>,
|
pub deleted_at: ::core::option::Option<u64>,
|
||||||
}
|
}
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
||||||
#[repr(i32)]
|
#[repr(i32)]
|
||||||
pub enum MemberState {
|
pub enum MemberState {
|
||||||
None = 0,
|
None = 0,
|
||||||
Normal = 1,
|
Normal = 1,
|
||||||
Pending = 2,
|
Pending = 2,
|
||||||
Withdrawal = 3,
|
Withdrawal = 3,
|
||||||
Dormancy = 4,
|
Dormancy = 4,
|
||||||
Blacklist = 5,
|
Blacklist = 5,
|
||||||
Suspended = 6,
|
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