2022-08-13 20:18:21 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package bet.beteran.ss.member_bank_account;
|
|
|
|
|
|
|
|
import "models/core/network.proto";
|
|
|
|
import "protobuf/rpc.proto";
|
|
|
|
import "protobuf/pagination.proto";
|
|
|
|
import "models/member_bank_account.proto";
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member_bank_account.CreateMemberBankAccount
|
|
|
|
message CreateMemberBankAccountRequest {
|
|
|
|
message Request {
|
|
|
|
string member_id = 1;
|
|
|
|
string bank_id = 2;
|
|
|
|
string name = 3;
|
|
|
|
string account_number = 4;
|
2022-08-15 04:08:57 +00:00
|
|
|
string exchange_password = 5;
|
|
|
|
optional string memo = 6;
|
2022-08-13 20:18:21 +00:00
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member_bank_account.ListMemberBankAccounts
|
|
|
|
message ListMemberBankAccountsRequest {
|
|
|
|
message Request {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListMemberBankAccountsResponse {
|
|
|
|
message Result {
|
2022-09-01 17:17:19 +00:00
|
|
|
uint64 total_count = 1;
|
|
|
|
repeated bet.beteran.member_bank_account.MemberBankAccount member_bank_accounts = 2;
|
2022-08-13 20:18:21 +00:00
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member_bank_account.GetMemberBankAccount
|
|
|
|
message GetMemberBankAccountRequest {
|
|
|
|
message Request {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member_bank_account.UpdateMemberBankAccount
|
|
|
|
message UpdateMemberBankAccountRequest {
|
|
|
|
message Request {
|
|
|
|
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-13 20:18:21 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2022-08-24 06:12:21 +00:00
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member_bank_account.UpdateMemberBankAccountForExchangePassword
|
|
|
|
message UpdateMemberBankAccountForExchangePasswordRequest {
|
|
|
|
message Request {
|
|
|
|
string id = 1;
|
|
|
|
string exchange_password = 2;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateMemberBankAccountForExchangePasswordResponse {
|
|
|
|
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_bank_account.DeleteMemberBankAccount
|
|
|
|
message DeleteMemberBankAccountRequest {
|
|
|
|
message Request {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteMemberBankAccountResponse {
|
|
|
|
message Result {
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|