2022-07-12 07:02:38 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package bet.beteran.member;
|
|
|
|
|
2022-08-13 20:18:21 +00:00
|
|
|
import "models/site.proto";
|
2022-08-08 01:46:20 +00:00
|
|
|
|
2022-08-15 04:08:57 +00:00
|
|
|
import "models/member_bank_account.proto";
|
2022-08-13 20:18:21 +00:00
|
|
|
import "models/member_class.proto";
|
|
|
|
import "models/member_level.proto";
|
2022-08-22 07:36:41 +00:00
|
|
|
import "models/member_game_setting.proto";
|
|
|
|
import "models/member_settlement_setting.proto";
|
2022-09-16 14:17:16 +00:00
|
|
|
import "models/member_balance.proto";
|
2022-07-12 07:02:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
enum MemberState {
|
|
|
|
NONE = 0;
|
|
|
|
NORMAL = 1;
|
|
|
|
PENDING = 2;
|
|
|
|
WITHDRAWAL = 3;
|
|
|
|
DORMANCY = 4;
|
|
|
|
BLACKLIST = 5;
|
|
|
|
SUSPENDED = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Member {
|
2022-08-11 01:04:25 +00:00
|
|
|
string id = 1;
|
|
|
|
string site_id = 2;
|
|
|
|
string member_class_id = 3;
|
|
|
|
string member_level_id = 4;
|
2022-08-19 06:14:52 +00:00
|
|
|
optional string parent_member_id = 5;
|
|
|
|
uint64 child_member_count = 6;
|
2022-08-11 01:04:25 +00:00
|
|
|
string username = 7;
|
|
|
|
string nickname = 8;
|
|
|
|
optional string mobile_phone_number = 9;
|
|
|
|
MemberState state = 10;
|
|
|
|
optional uint64 state_changed_at = 11;
|
|
|
|
optional string last_signined_ip = 12;
|
|
|
|
optional uint64 last_signined_at = 13;
|
|
|
|
uint64 created_at = 14;
|
|
|
|
uint64 updated_at = 15;
|
|
|
|
optional uint64 deleted_at = 16;
|
|
|
|
}
|
|
|
|
|
2022-09-01 08:30:53 +00:00
|
|
|
message MemberModel {
|
|
|
|
string id = 1;
|
|
|
|
bet.beteran.site.Site site = 2;
|
|
|
|
bet.beteran.member_class.MemberClass member_class = 3;
|
|
|
|
bet.beteran.member_level.MemberLevel member_level = 4;
|
|
|
|
optional bet.beteran.member_bank_account.MemberBankAccountModel bank_account = 5;
|
2022-09-06 12:41:13 +00:00
|
|
|
optional MemberModel parent_member = 6;
|
2022-09-01 08:30:53 +00:00
|
|
|
uint64 child_member_count = 7;
|
2022-09-16 14:17:16 +00:00
|
|
|
repeated uint64 children_count = 8;
|
|
|
|
string username = 9;
|
|
|
|
string nickname = 10;
|
|
|
|
optional string mobile_phone_number = 11;
|
|
|
|
MemberState state = 12;
|
|
|
|
optional uint64 state_changed_at = 13;
|
|
|
|
optional bet.beteran.member_game_setting.MemberGameSetting member_game_setting = 14;
|
|
|
|
optional bet.beteran.member_settlement_setting.MemberSettlementSetting member_settlement_setting = 15;
|
|
|
|
optional bet.beteran.member_balance.MemberBalance member_balance = 16;
|
|
|
|
optional string last_signined_ip = 17;
|
|
|
|
optional uint64 last_signined_at = 18;
|
|
|
|
uint64 created_at = 19;
|
|
|
|
uint64 updated_at = 20;
|
|
|
|
optional uint64 deleted_at = 21;
|
2022-09-01 08:30:53 +00:00
|
|
|
}
|
|
|
|
|