2022-07-12 07:02:38 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package bet.beteran.member;
|
|
|
|
|
2022-08-08 01:46:20 +00:00
|
|
|
import "models/domain/site.proto";
|
|
|
|
|
2022-07-12 07:02:38 +00:00
|
|
|
import "models/member/member_class.proto";
|
|
|
|
import "models/member/member_level.proto";
|
|
|
|
|
|
|
|
|
|
|
|
enum MemberState {
|
|
|
|
NONE = 0;
|
|
|
|
NORMAL = 1;
|
|
|
|
PENDING = 2;
|
|
|
|
WITHDRAWAL = 3;
|
|
|
|
DORMANCY = 4;
|
|
|
|
BLACKLIST = 5;
|
|
|
|
SUSPENDED = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Member {
|
|
|
|
string id = 1;
|
2022-08-08 01:46:20 +00:00
|
|
|
bet.beteran.domain.Site site = 2;
|
2022-07-12 07:02:38 +00:00
|
|
|
MemberClass member_class = 3;
|
|
|
|
MemberLevel member_level = 4;
|
2022-08-10 10:13:09 +00:00
|
|
|
optional Member referrer_member = 5;
|
2022-08-08 01:46:20 +00:00
|
|
|
uint64 referred_count = 6;
|
|
|
|
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-07-12 07:02:38 +00:00
|
|
|
}
|