syntax = "proto3"; package bet.beteran.ss.member_bank_deposit; import "models/core/network.proto"; import "protobuf/rpc.proto"; import "protobuf/pagination.proto"; import "models/member_bank_deposit.proto"; // subject = bet.beteran.ss.member_bank_deposit.CreateMemberBankDeposit message CreateMemberBankDepositRequest { message Request { string member_id = 1; string name = 2; uint32 amount = 3; optional string memo = 4; } bet.beteran.core.network.Client client = 1; Request request = 2; } message CreateMemberBankDepositResponse { message Result { bet.beteran.member_bank_deposit.MemberBankDeposit member_bank_deposit = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss.member_bank_deposit.ListMemberBankDeposits message ListMemberBankDepositsRequest { message Request { message Search { optional string member_id = 1; optional string name_like = 2; optional uint32 amount = 3; optional string memo_like = 4; optional bet.beteran.member_bank_deposit.MemberBankDepositState state = 5; } 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 ListMemberBankDepositsResponse { message Result { repeated bet.beteran.member_bank_deposit.MemberBankDeposit member_bank_deposits = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss.member_bank_deposit.GetMemberBankDeposit message GetMemberBankDepositRequest { message Request { string id = 1; } bet.beteran.core.network.Client client = 1; Request request = 2; } message GetMemberBankDepositResponse { message Result { bet.beteran.member_bank_deposit.MemberBankDeposit member_bank_deposit = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss.member_bank_deposit.UpdateMemberBankDeposit message UpdateMemberBankDepositRequest { message Request { string id = 1; string name = 3; uint32 amount = 5; optional string memo = 7; } bet.beteran.core.network.Client client = 1; Request request = 2; } message UpdateMemberBankDepositResponse { message Result { bet.beteran.member_bank_deposit.MemberBankDeposit member_bank_deposit = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss.member_bank_deposit.UpdateMemberBankDepositForState message UpdateMemberBankDepositForStateRequest { message Request { string id = 1; bet.beteran.member_bank_deposit.MemberBankDepositState state = 2; } bet.beteran.core.network.Client client = 1; Request request = 2; } message UpdateMemberBankDepositForStateResponse { message Result { bet.beteran.member_bank_deposit.MemberBankDeposit member_bank_deposit = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss.member_bank_deposit.DeleteMemberBankDeposit message DeleteMemberBankDepositRequest { message Request { string id = 1; } bet.beteran.core.network.Client client = 1; Request request = 2; } message DeleteMemberBankDepositResponse { message Result { } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; }