syntax = "proto3"; package bet.beteran.c2se.member; import "protobuf/rpc.proto"; import "protobuf/pagination.proto"; import "models/member.proto"; import "models/member_settlement_setting.proto"; message CreateMemberRequest { message BankAccount { string bank_id = 1; string name = 2; string account_number = 3; string exchange_password = 4; optional string memo = 5; } 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; } 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; optional BankAccount bank_account = 9; optional GameSetting game_setting = 10; optional SettlementSetting settlement_setting = 11; } message CreateMemberResponse { message Result { bet.beteran.member.MemberModel member = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message ListMembersRequest { message Search { optional string site_id = 1; optional string member_class_id = 2; optional string member_level_id = 3; optional string parent_member_id = 4; 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; } optional bet.protobuf.pagination.Pagination pagination = 1; repeated bet.protobuf.pagination.Sort sorts = 2; optional Search search = 3; } message ListMembersResponse { message Result { repeated bet.beteran.member.MemberModel members = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message GetMemberRequest { string id = 1; } message GetMemberResponse { message Result { bet.beteran.member.MemberModel member = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message GetMemberByUsernameRequest { string username = 1; } message GetMemberByUsernameResponse { message Result { bet.beteran.member.MemberModel member = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message UpdateMemberRequest { message BankAccount { string id = 1; string bank_id = 2; string name = 3; string account_number = 4; optional string memo = 5; } 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; } string id = 1; optional string site_id = 2; optional string member_level_id = 3; optional string mobile_phone_number = 4; optional BankAccount bank_account = 5; optional GameSetting game_setting = 6; optional SettlementSetting settlement_setting = 7; } message UpdateMemberResponse { message Result { bet.beteran.member.MemberModel member = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message UpdateMemberForPasswordRequest { string id = 1; string password = 2; } message UpdateMemberForPasswordResponse { message Result { } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message UpdateMemberForStateRequest { string id = 1; bet.beteran.member.MemberState state = 2; } message UpdateMemberForStateResponse { message Result { bet.beteran.member.MemberModel member = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message DeleteMemberRequest { string id = 1; } message DeleteMemberResponse { message Result { } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; }