From 37f18d672be12a2bd889711a2820386de55b0ea9 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Sat, 27 Aug 2022 07:55:30 +0000 Subject: [PATCH] member_session is added --- build.rs | 5 ++-- proto/models/member_session.proto | 4 ++-- proto/ss/member_session.proto | 39 +++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 proto/ss/member_session.proto diff --git a/build.rs b/build.rs index a41ae79..13d729a 100644 --- a/build.rs +++ b/build.rs @@ -108,11 +108,12 @@ static TARGETS: Lazy>> = Lazy::new(|| { "./proto/ss/member_bank_deposit.proto", "./proto/ss/member_bank_withdraw.proto", "./proto/ss/member_class.proto", + "./proto/ss/member_game_setting.proto", "./proto/ss/member_level.proto", "./proto/ss/member_referrer.proto", - "./proto/ss/member.proto", - "./proto/ss/member_game_setting.proto", + "./proto/ss/member_session.proto", "./proto/ss/member_settlement_setting.proto", + "./proto/ss/member.proto", "./proto/ss/site.proto", "./proto/ss/api/vendor.proto", "./proto/ss/api/game.proto", diff --git a/proto/models/member_session.proto b/proto/models/member_session.proto index 75596a6..b8a224c 100644 --- a/proto/models/member_session.proto +++ b/proto/models/member_session.proto @@ -6,8 +6,8 @@ import "models/member.proto"; message MemberSession { string id = 1; - bet.beteran.member.Member member = 2; - string data = 3; + string member_id = 2; + string ip = 3; uint64 last_accessed_at = 4; uint64 expires_at = 5; uint64 created_at = 6; diff --git a/proto/ss/member_session.proto b/proto/ss/member_session.proto new file mode 100644 index 0000000..0320a85 --- /dev/null +++ b/proto/ss/member_session.proto @@ -0,0 +1,39 @@ +syntax = "proto3"; + +package bet.beteran.ss.member_session; + +import "models/core/network.proto"; +import "protobuf/rpc.proto"; +import "protobuf/pagination.proto"; +import "models/member_session.proto"; + +message GetMemberSessionRequest { + message Request { + } + bet.beteran.core.network.Client client = 1; + Request request = 2; +} + +message GetMemberSessionResponse { + message Result { + bet.beteran.member_session.MemberSession member_session = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} + + +message GetMemberSessionWithRenewalRequest { + message Request { + } + bet.beteran.core.network.Client client = 1; + Request request = 2; +} + +message GetMemberSessionWithRenewalResponse { + message Result { + bet.beteran.member_session.MemberSession member_session = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +}