beteran-protobuf/proto/c2se/member_bank_account.proto

103 lines
2.3 KiB
Protocol Buffer

syntax = "proto3";
package bet.beteran.c2se.member_bank_account;
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/member_bank_account.proto";
message CreateMemberBankAccountRequest {
string member_id = 1;
string bank_id = 2;
string name = 3;
string account_number = 4;
string exchange_password = 5;
optional string memo = 6;
}
message CreateMemberBankAccountResponse {
message Result {
bet.beteran.member_bank_account.MemberBankAccount member_bank_account = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message ListMemberBankAccountsRequest {
message Search {
optional string member_id = 1;
optional string bank_id = 2;
optional string name_like = 3;
optional string account_number_like = 4;
optional string memo_like = 5;
}
optional bet.protobuf.pagination.Pagination pagination = 1;
repeated bet.protobuf.pagination.Sort sorts = 2;
optional Search search = 3;
}
message ListMemberBankAccountsResponse {
message Result {
uint64 total_count = 1;
repeated bet.beteran.member_bank_account.MemberBankAccount member_bank_accounts = 2;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message GetMemberBankAccountRequest {
string id = 1;
}
message GetMemberBankAccountResponse {
message Result {
bet.beteran.member_bank_account.MemberBankAccount member_bank_account = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message UpdateMemberBankAccountRequest {
string id = 1;
string bank_id = 2;
string name = 3;
string account_number = 4;
optional string memo = 5;
}
message UpdateMemberBankAccountResponse {
message Result {
bet.beteran.member_bank_account.MemberBankAccount member_bank_account = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message UpdateMemberBankAccountForExchangePasswordRequest {
string id = 1;
string exchange_password = 2;
}
message UpdateMemberBankAccountForExchangePasswordResponse {
message Result {
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message DeleteMemberBankAccountRequest {
string id = 1;
}
message DeleteMemberBankAccountResponse {
message Result {
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}