144 lines
4.0 KiB
Protocol Buffer
144 lines
4.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package bet.beteran.ss.member_bank_withdraw;
|
|
|
|
import "models/core/network.proto";
|
|
import "protobuf/rpc.proto";
|
|
import "protobuf/pagination.proto";
|
|
import "models/member_bank_withdraw.proto";
|
|
|
|
// subject = bet.beteran.ss.member_bank_withdraw.CreateMemberBankWithdraw
|
|
message CreateMemberBankWithdrawRequest {
|
|
message Request {
|
|
string member_id = 1;
|
|
string bank_name = 2;
|
|
string name = 3;
|
|
string account_number = 4;
|
|
uint32 amount = 5;
|
|
string password = 6;
|
|
optional string memo = 7;
|
|
}
|
|
bet.beteran.core.network.Client client = 1;
|
|
Request request = 2;
|
|
}
|
|
|
|
message CreateMemberBankWithdrawResponse {
|
|
message Result {
|
|
bet.beteran.member_bank_withdraw.MemberBankWithdrawModel member_bank_withdraw = 1;
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|
|
|
|
// subject = bet.beteran.ss.member_bank_withdraw.ListMemberBankWithdraws
|
|
message ListMemberBankWithdrawsRequest {
|
|
message Request {
|
|
message Search {
|
|
optional string member_id = 1;
|
|
optional string bank_name_like = 2;
|
|
optional string name_like = 3;
|
|
optional string account_number_like = 4;
|
|
optional uint32 amount = 5;
|
|
optional string memo_like = 6;
|
|
optional bet.beteran.member_bank_withdraw.MemberBankWithdrawState state = 7;
|
|
}
|
|
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 ListMemberBankWithdrawsResponse {
|
|
message Result {
|
|
repeated bet.beteran.member_bank_withdraw.MemberBankWithdrawModel member_bank_withdraws = 1;
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|
|
|
|
// subject = bet.beteran.ss.member_bank_withdraw.GetMemberBankWithdraw
|
|
message GetMemberBankWithdrawRequest {
|
|
message Request {
|
|
string id = 1;
|
|
}
|
|
bet.beteran.core.network.Client client = 1;
|
|
Request request = 2;
|
|
}
|
|
|
|
message GetMemberBankWithdrawResponse {
|
|
message Result {
|
|
bet.beteran.member_bank_withdraw.MemberBankWithdrawModel member_bank_withdraw = 1;
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|
|
|
|
// subject = bet.beteran.ss.member_bank_withdraw.UpdateMemberBankWithdraw
|
|
message UpdateMemberBankWithdrawRequest {
|
|
message Request {
|
|
string id = 1;
|
|
string bank_name = 2;
|
|
string name = 3;
|
|
string account_number = 4;
|
|
uint32 amount = 5;
|
|
string password = 6;
|
|
optional string memo = 7;
|
|
}
|
|
bet.beteran.core.network.Client client = 1;
|
|
Request request = 2;
|
|
}
|
|
|
|
message UpdateMemberBankWithdrawResponse {
|
|
message Result {
|
|
bet.beteran.member_bank_withdraw.MemberBankWithdrawModel member_bank_withdraw = 1;
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|
|
|
|
// subject = bet.beteran.ss.member_bank_withdraw.UpdateMemberBankWithdrawForState
|
|
message UpdateMemberBankWithdrawForStateRequest {
|
|
message Request {
|
|
string id = 1;
|
|
bet.beteran.member_bank_withdraw.MemberBankWithdrawState state = 2;
|
|
}
|
|
bet.beteran.core.network.Client client = 1;
|
|
Request request = 2;
|
|
}
|
|
|
|
message UpdateMemberBankWithdrawForStateResponse {
|
|
message Result {
|
|
bet.beteran.member_bank_withdraw.MemberBankWithdrawModel member_bank_withdraw = 1;
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|
|
|
|
// subject = bet.beteran.ss.member_bank_withdraw.DeleteMemberBankWithdraw
|
|
message DeleteMemberBankWithdrawRequest {
|
|
message Request {
|
|
string id = 1;
|
|
}
|
|
bet.beteran.core.network.Client client = 1;
|
|
Request request = 2;
|
|
}
|
|
|
|
message DeleteMemberBankWithdrawResponse {
|
|
message Result {
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|
|
|
|
|
|
// subject = bet.beteran.ss_event.member_bank_withdraw.AfterUpdateMemberBankWithdrawForState
|
|
message AfterUpdateMemberBankWithdrawForState {
|
|
message Event {
|
|
bet.beteran.member_bank_withdraw.MemberBankWithdrawModel member_bank_withdraw = 1;
|
|
}
|
|
bet.beteran.core.network.Client client = 1;
|
|
Event event = 2;
|
|
}
|