member_session is added

This commit is contained in:
병준 박 2022-08-27 07:55:30 +00:00
parent f1a8f586b3
commit 37f18d672b
3 changed files with 44 additions and 4 deletions

View File

@ -108,11 +108,12 @@ static TARGETS: Lazy<HashMap<&str, Vec<&str>>> = 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",

View File

@ -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;

View File

@ -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;
}