beteran-protobuf/proto/ss/member_bank_withdraw.proto

144 lines
4.0 KiB
Protocol Buffer
Raw Normal View History

2022-08-13 20:18:21 +00:00
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 {
2022-08-14 06:14:38 +00:00
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;
2022-08-13 20:18:21 +00:00
}
bet.beteran.core.network.Client client = 1;
Request request = 2;
}
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;
}
// 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;
2022-08-14 06:25:14 +00:00
optional uint32 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;
}
bet.beteran.core.network.Client client = 1;
Request request = 2;
}
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;
}
// 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 {
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;
}
// 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 {
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;
}
// 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 {
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;
}
// 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;
}
2022-08-28 13:37:36 +00:00
// 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;
}