2022-08-13 20:18:21 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package bet.beteran.ss.member;
|
|
|
|
|
2022-08-19 06:14:52 +00:00
|
|
|
import "models/core/network.proto";
|
2022-08-13 20:18:21 +00:00
|
|
|
import "protobuf/rpc.proto";
|
|
|
|
import "protobuf/pagination.proto";
|
|
|
|
import "models/member.proto";
|
2022-08-24 05:12:21 +00:00
|
|
|
import "models/member_settlement_setting.proto";
|
2022-08-13 20:18:21 +00:00
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member.CreateMember
|
|
|
|
message CreateMemberRequest {
|
|
|
|
message Request {
|
2022-08-15 04:08:57 +00:00
|
|
|
message BankAccount {
|
|
|
|
string bank_id = 1;
|
|
|
|
string name = 2;
|
|
|
|
string account_number = 3;
|
|
|
|
string exchange_password = 4;
|
|
|
|
}
|
2022-08-24 05:12:21 +00:00
|
|
|
message GameSetting {
|
|
|
|
bool can_bet_casino = 1;
|
|
|
|
bool can_bet_slot = 2;
|
|
|
|
bool can_bet_powerball = 3;
|
|
|
|
bool can_bet_powerladder = 4;
|
|
|
|
bool can_bet_eos = 5;
|
|
|
|
bool can_bet_bogglepowerball = 6;
|
|
|
|
}
|
|
|
|
message SettlementSetting {
|
|
|
|
bool can_exchange = 1;
|
|
|
|
bool can_first_charge_comp = 2;
|
|
|
|
bool can_per_charge_comp = 3;
|
|
|
|
bet.beteran.member_settlement_setting.SettlementType settlement_type = 4;
|
|
|
|
bet.beteran.member_settlement_setting.ManualPaymentType manual_payment_type_for_partner = 5;
|
|
|
|
double rate_casino = 6;
|
|
|
|
double rate_casino_loosing = 7;
|
|
|
|
double rate_casino_bacara = 8;
|
|
|
|
double rate_casino_roulette = 9;
|
|
|
|
double rate_casino_dragon_tiger = 10;
|
|
|
|
double rate_slot = 11;
|
|
|
|
double rate_slot_loosing = 12;
|
|
|
|
double rate_powerball_single = 13;
|
|
|
|
double rate_powerball_combo = 14;
|
|
|
|
double rate_powerladder_single = 15;
|
|
|
|
double rate_powerladder_combo = 16;
|
|
|
|
double rate_eos_single = 17;
|
|
|
|
double rate_eos_combo = 18;
|
|
|
|
double rate_bogglepowerball_single = 19;
|
|
|
|
double rate_bogglepowerball_combo = 20;
|
|
|
|
}
|
2022-08-13 20:18:21 +00:00
|
|
|
string site_id = 1;
|
|
|
|
string member_class_id = 2;
|
|
|
|
string member_level_id = 3;
|
|
|
|
optional string referrer_member_username = 4;
|
|
|
|
string username = 5;
|
|
|
|
string password = 6;
|
|
|
|
string nickname = 7;
|
|
|
|
optional string mobile_phone_number = 8;
|
2022-08-15 04:08:57 +00:00
|
|
|
optional BankAccount bank_account = 9;
|
2022-08-24 05:12:21 +00:00
|
|
|
optional GameSetting game_setting = 10;
|
|
|
|
optional SettlementSetting settlement_setting = 11;
|
2022-09-01 09:34:23 +00:00
|
|
|
bet.beteran.member.MemberState state = 12;
|
2022-08-13 20:18:21 +00:00
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateMemberResponse {
|
|
|
|
message Result {
|
|
|
|
bet.beteran.member.MemberModel member = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member.ListMembers
|
|
|
|
message ListMembersRequest {
|
|
|
|
message Request {
|
|
|
|
message Search {
|
|
|
|
optional string site_id = 1;
|
|
|
|
optional string member_class_id = 2;
|
|
|
|
optional string member_level_id = 3;
|
2022-08-19 06:14:52 +00:00
|
|
|
optional string parent_member_id = 4;
|
2022-09-01 08:19:55 +00:00
|
|
|
optional string username = 5;
|
|
|
|
repeated string usernames = 6;
|
|
|
|
optional string username_like = 7;
|
|
|
|
optional string nickname = 8;
|
|
|
|
repeated string nicknames = 9;
|
|
|
|
optional string nickname_like = 10;
|
|
|
|
optional string mobile_phone_number_like = 11;
|
|
|
|
optional string last_signined_ip = 12;
|
|
|
|
optional bet.beteran.member.MemberState state = 13;
|
|
|
|
optional uint64 deleted_at = 14;
|
2022-08-13 20:18:21 +00:00
|
|
|
}
|
|
|
|
optional bet.protobuf.pagination.Pagination pagination = 1;
|
|
|
|
repeated bet.protobuf.pagination.Sort sorts = 2;
|
|
|
|
optional Search search = 3;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListMembersResponse {
|
|
|
|
message Result {
|
|
|
|
repeated bet.beteran.member.MemberModel members = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member.GetMember
|
|
|
|
message GetMemberRequest {
|
|
|
|
message Request {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetMemberResponse {
|
|
|
|
message Result {
|
|
|
|
bet.beteran.member.MemberModel member = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member.GetMemberByUsername
|
|
|
|
message GetMemberByUsernameRequest {
|
|
|
|
message Request {
|
|
|
|
string username = 1;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetMemberByUsernameResponse {
|
|
|
|
message Result {
|
|
|
|
bet.beteran.member.MemberModel member = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member.UpdateMember
|
|
|
|
message UpdateMemberRequest {
|
|
|
|
message Request {
|
2022-08-15 04:08:57 +00:00
|
|
|
message BankAccount {
|
2022-08-15 04:37:50 +00:00
|
|
|
string id = 1;
|
|
|
|
string bank_id = 2;
|
|
|
|
string name = 3;
|
|
|
|
string account_number = 4;
|
2022-08-24 06:12:21 +00:00
|
|
|
optional string memo = 5;
|
2022-08-15 04:08:57 +00:00
|
|
|
}
|
2022-08-24 05:12:21 +00:00
|
|
|
message GameSetting {
|
|
|
|
string id = 1;
|
|
|
|
bool can_bet_casino = 2;
|
|
|
|
bool can_bet_slot = 3;
|
|
|
|
bool can_bet_powerball = 4;
|
|
|
|
bool can_bet_powerladder = 5;
|
|
|
|
bool can_bet_eos = 6;
|
|
|
|
bool can_bet_bogglepowerball = 7;
|
|
|
|
}
|
|
|
|
message SettlementSetting {
|
|
|
|
string id = 1;
|
|
|
|
bool can_exchange = 2;
|
|
|
|
bool can_first_charge_comp = 3;
|
|
|
|
bool can_per_charge_comp = 4;
|
|
|
|
bet.beteran.member_settlement_setting.SettlementType settlement_type = 5;
|
|
|
|
bet.beteran.member_settlement_setting.ManualPaymentType manual_payment_type_for_partner = 6;
|
|
|
|
double rate_casino = 7;
|
|
|
|
double rate_casino_loosing = 8;
|
|
|
|
double rate_casino_bacara = 9;
|
|
|
|
double rate_casino_roulette = 10;
|
|
|
|
double rate_casino_dragon_tiger = 11;
|
|
|
|
double rate_slot = 12;
|
|
|
|
double rate_slot_loosing = 13;
|
|
|
|
double rate_powerball_single = 14;
|
|
|
|
double rate_powerball_combo = 15;
|
|
|
|
double rate_powerladder_single = 16;
|
|
|
|
double rate_powerladder_combo = 17;
|
|
|
|
double rate_eos_single = 18;
|
|
|
|
double rate_eos_combo = 19;
|
|
|
|
double rate_bogglepowerball_single = 20;
|
|
|
|
double rate_bogglepowerball_combo = 21;
|
|
|
|
}
|
2022-08-13 20:18:21 +00:00
|
|
|
string id = 1;
|
|
|
|
optional string site_id = 2;
|
|
|
|
optional string member_level_id = 3;
|
2022-08-24 06:12:21 +00:00
|
|
|
optional string mobile_phone_number = 4;
|
|
|
|
optional BankAccount bank_account = 5;
|
|
|
|
optional GameSetting game_setting = 6;
|
|
|
|
optional SettlementSetting settlement_setting = 7;
|
2022-08-13 20:18:21 +00:00
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateMemberResponse {
|
|
|
|
message Result {
|
|
|
|
bet.beteran.member.MemberModel member = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
2022-08-24 06:12:21 +00:00
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member.UpdateMemberForPassword
|
|
|
|
message UpdateMemberForPasswordRequest {
|
|
|
|
message Request {
|
|
|
|
string id = 1;
|
|
|
|
string password = 2;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateMemberForPasswordResponse {
|
|
|
|
message Result {
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-08-13 20:18:21 +00:00
|
|
|
// subject = bet.beteran.ss.member.UpdateMemberForState
|
|
|
|
message UpdateMemberForStateRequest {
|
|
|
|
message Request {
|
|
|
|
string id = 1;
|
|
|
|
bet.beteran.member.MemberState state = 2;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateMemberForStateResponse {
|
|
|
|
message Result {
|
|
|
|
bet.beteran.member.MemberModel member = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member.DeleteMember
|
|
|
|
message DeleteMemberRequest {
|
|
|
|
message Request {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteMemberResponse {
|
|
|
|
message Result {
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
2022-08-15 06:31:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss_event.member.AfterCreateMember
|
|
|
|
message AfterCreateMemberEvent {
|
|
|
|
message Event {
|
2022-08-15 06:38:07 +00:00
|
|
|
bet.beteran.member.MemberModel member = 1;
|
2022-08-15 06:31:24 +00:00
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Event event = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss_event.member.AfterUpdateMember
|
|
|
|
message AfterUpdateMemberEvent {
|
|
|
|
message Event {
|
2022-08-15 06:38:07 +00:00
|
|
|
bet.beteran.member.MemberModel member = 1;
|
2022-08-15 06:31:24 +00:00
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Event event = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss_event.member.AfterDeleteMember
|
|
|
|
message AfterDeleteMemberEvent {
|
|
|
|
message Event {
|
2022-08-15 06:38:07 +00:00
|
|
|
bet.beteran.member.MemberModel member = 1;
|
2022-08-15 06:31:24 +00:00
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Event event = 2;
|
|
|
|
}
|