beteran-protobuf/proto/c2se/member_bank_withdraw.proto

103 lines
2.6 KiB
Protocol Buffer
Raw Normal View History

2022-08-13 20:18:21 +00:00
syntax = "proto3";
package bet.beteran.c2se.member_bank_withdraw;
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/member_bank_withdraw.proto";
message CreateMemberBankWithdrawRequest {
string bank_name = 1;
string name = 2;
string account_number = 3;
2022-08-30 08:32:03 +00:00
double amount = 4;
2022-08-13 20:18:21 +00:00
string password = 5;
optional string memo = 6;
}
message CreateMemberBankWithdrawResponse {
message Result {
2022-08-28 13:37:36 +00:00
bet.beteran.member_bank_withdraw.MemberBankWithdrawModel member_bank_withdraw = 1;
2022-08-13 20:18:21 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message ListMemberBankWithdrawsRequest {
message Search {
optional string member_id = 1;
optional string bank_name_like = 2;
optional string name_like = 3;
optional string account_number_like = 4;
2022-08-30 08:32:03 +00:00
optional double amount = 5;
2022-08-13 20:18:21 +00:00
optional string memo_like = 6;
2022-08-14 06:25:14 +00:00
optional bet.beteran.member_bank_withdraw.MemberBankWithdrawState state = 7;
2022-08-13 20:18:21 +00:00
}
optional bet.protobuf.pagination.Pagination pagination = 1;
repeated bet.protobuf.pagination.Sort sorts = 2;
optional Search search = 3;
}
message ListMemberBankWithdrawsResponse {
message Result {
2022-08-28 13:37:36 +00:00
repeated bet.beteran.member_bank_withdraw.MemberBankWithdrawModel member_bank_withdraws = 1;
2022-08-13 20:18:21 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message GetMemberBankWithdrawRequest {
string id = 1;
}
message GetMemberBankWithdrawResponse {
message Result {
2022-08-28 13:37:36 +00:00
bet.beteran.member_bank_withdraw.MemberBankWithdrawModel member_bank_withdraw = 1;
2022-08-13 20:18:21 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message UpdateMemberBankWithdrawRequest {
string id = 1;
string bank_name = 2;
string name = 3;
string account_number = 4;
2022-08-30 09:28:55 +00:00
double amount = 5;
2022-08-13 20:18:21 +00:00
string password = 6;
optional string memo = 7;
}
message UpdateMemberBankWithdrawResponse {
message Result {
2022-08-28 13:37:36 +00:00
bet.beteran.member_bank_withdraw.MemberBankWithdrawModel member_bank_withdraw = 1;
2022-08-13 20:18:21 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message UpdateMemberBankWithdrawForStateRequest {
string id = 1;
bet.beteran.member_bank_withdraw.MemberBankWithdrawState state = 2;
}
message UpdateMemberBankWithdrawForStateResponse {
message Result {
2022-08-28 13:37:36 +00:00
bet.beteran.member_bank_withdraw.MemberBankWithdrawModel member_bank_withdraw = 1;
2022-08-13 20:18:21 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message DeleteMemberBankWithdrawRequest {
string id = 1;
}
message DeleteMemberBankWithdrawResponse {
message Result {
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}