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>,
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,3 +89,19 @@ pub enum MemberState {
|
||||||
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