member_session is added

This commit is contained in:
병준 박 2022-08-27 06:42:18 +00:00
parent 84c971ac62
commit c626fcdae4
3 changed files with 67 additions and 12 deletions

View File

@ -2,10 +2,10 @@
pub struct MemberSession { pub struct MemberSession {
#[prost(string, tag = "1")] #[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String, pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag="2")] #[prost(string, tag = "2")]
pub member: ::core::option::Option<super::member::Member>, pub member_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")] #[prost(string, tag = "3")]
pub data: ::prost::alloc::string::String, pub ip: ::prost::alloc::string::String,
#[prost(uint64, tag = "4")] #[prost(uint64, tag = "4")]
pub last_accessed_at: u64, pub last_accessed_at: u64,
#[prost(uint64, tag = "5")] #[prost(uint64, tag = "5")]

54
src/ss/member_session.rs Normal file
View File

@ -0,0 +1,54 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberSessionRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_session_request::Request>,
}
/// Nested message and enum types in `GetMemberSessionRequest`.
pub mod get_member_session_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberSessionResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_session_response::Result>,
}
/// Nested message and enum types in `GetMemberSessionResponse`.
pub mod get_member_session_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_session: ::core::option::Option<crate::models::member_session::MemberSession>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberSessionWithRenewalRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_session_with_renewal_request::Request>,
}
/// Nested message and enum types in `GetMemberSessionWithRenewalRequest`.
pub mod get_member_session_with_renewal_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberSessionWithRenewalResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_session_with_renewal_response::Result>,
}
/// Nested message and enum types in `GetMemberSessionWithRenewalResponse`.
pub mod get_member_session_with_renewal_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_session: ::core::option::Option<crate::models::member_session::MemberSession>,
}
}

View File

@ -9,5 +9,6 @@ pub mod member_class;
pub mod member_game_setting; pub mod member_game_setting;
pub mod member_level; pub mod member_level;
pub mod member_referrer; pub mod member_referrer;
pub mod member_session;
pub mod member_settlement_setting; pub mod member_settlement_setting;
pub mod site; pub mod site;