syntax = "proto3"; package bet.beteran.ss.member_balance; import "models/core/network.proto"; import "protobuf/rpc.proto"; import "protobuf/pagination.proto"; import "models/member_balance.proto"; // subject = bet.beteran.ss.member_balance.CreateMemberBalance message CreateMemberBalanceRequest { message Request { string member_id = 1; } bet.beteran.core.network.Client client = 1; Request request = 2; } message CreateMemberBalanceResponse { message Result { bet.beteran.member_balance.MemberBalance member_balance = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss.member_balance.ListMemberBalances message ListMemberBalancesRequest { message Request { message Search { optional string member_id = 1; } 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 ListMemberBalancesResponse { message Result { uint64 total_count = 1; repeated bet.beteran.member_balance.MemberBalance member_balances = 2; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss.member_balance.GetMemberBalance message GetMemberBalanceRequest { message Request { string id = 1; } bet.beteran.core.network.Client client = 1; Request request = 2; } message GetMemberBalanceResponse { message Result { bet.beteran.member_balance.MemberBalance member_balance = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss.member_balance.UpdateMemberBalance message UpdateMemberBalanceRequest { message Request { string id = 1; double balance = 2; double balance_bota = 3; double balance_sum = 4; } bet.beteran.core.network.Client client = 1; Request request = 2; } message UpdateMemberBalanceResponse { message Result { bet.beteran.member_balance.MemberBalance member_balance = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss.member_balance.DeleteMemberBalance message DeleteMemberBalanceRequest { message Request { string id = 1; } bet.beteran.core.network.Client client = 1; Request request = 2; } message DeleteMemberBalanceResponse { message Result { } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss_event.member_balance.AfterUpdateMemberBalance message AfterUpdateMemberBalanceEvent { message Event { string member_id = 1; double balance = 2; double balance_bota = 3; double balance_sum = 4; } bet.beteran.core.network.Client client = 1; Event event = 2; }