From c626fcdae49e6c5ba5f2faf3160fbd41673bb2d4 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Sat, 27 Aug 2022 06:42:18 +0000 Subject: [PATCH] member_session is added --- src/models/member_session.rs | 24 ++++++++-------- src/ss/member_session.rs | 54 ++++++++++++++++++++++++++++++++++++ src/ss/mod.rs | 1 + 3 files changed, 67 insertions(+), 12 deletions(-) create mode 100644 src/ss/member_session.rs diff --git a/src/models/member_session.rs b/src/models/member_session.rs index d17da5a..ccd3e5a 100644 --- a/src/models/member_session.rs +++ b/src/models/member_session.rs @@ -1,15 +1,15 @@ #[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, - #[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, + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub member_id: ::prost::alloc::string::String, + #[prost(string, tag = "3")] + pub ip: ::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, } diff --git a/src/ss/member_session.rs b/src/ss/member_session.rs new file mode 100644 index 0000000..d63da7a --- /dev/null +++ b/src/ss/member_session.rs @@ -0,0 +1,54 @@ +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberSessionRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// 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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// 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, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberSessionWithRenewalRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// 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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// 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, + } +} diff --git a/src/ss/mod.rs b/src/ss/mod.rs index b6fe34b..aa6e593 100644 --- a/src/ss/mod.rs +++ b/src/ss/mod.rs @@ -9,5 +9,6 @@ pub mod member_class; pub mod member_game_setting; pub mod member_level; pub mod member_referrer; +pub mod member_session; pub mod member_settlement_setting; pub mod site;