beteran-protobuf/proto/ss/member_bank_deposit.proto

137 lines
3.7 KiB
Protocol Buffer
Raw Normal View History

2022-08-13 20:18:21 +00:00
syntax = "proto3";
package bet.beteran.ss.member_bank_deposit;
import "models/core/network.proto";
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/member_bank_deposit.proto";
// subject = bet.beteran.ss.member_bank_deposit.CreateMemberBankDeposit
message CreateMemberBankDepositRequest {
message Request {
2022-08-14 06:14:38 +00:00
string member_id = 1;
string name = 2;
2022-08-30 08:32:03 +00:00
double amount = 3;
2022-08-14 06:14:38 +00:00
optional string memo = 4;
2022-08-13 20:18:21 +00:00
}
bet.beteran.core.network.Client client = 1;
Request request = 2;
}
message CreateMemberBankDepositResponse {
message Result {
2022-08-28 13:37:36 +00:00
bet.beteran.member_bank_deposit.MemberBankDepositModel member_bank_deposit = 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_deposit.ListMemberBankDeposits
message ListMemberBankDepositsRequest {
message Request {
message Search {
optional string member_id = 1;
optional string name_like = 2;
2022-08-30 08:32:03 +00:00
optional double amount = 3;
2022-08-13 20:18:21 +00:00
optional string memo_like = 4;
2022-08-14 06:25:14 +00:00
optional bet.beteran.member_bank_deposit.MemberBankDepositState state = 5;
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 ListMemberBankDepositsResponse {
message Result {
2022-09-01 17:17:19 +00:00
uint64 total_count = 1;
repeated bet.beteran.member_bank_deposit.MemberBankDepositModel member_bank_deposits = 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_deposit.GetMemberBankDeposit
message GetMemberBankDepositRequest {
message Request {
string id = 1;
}
bet.beteran.core.network.Client client = 1;
Request request = 2;
}
message GetMemberBankDepositResponse {
message Result {
2022-08-28 13:37:36 +00:00
bet.beteran.member_bank_deposit.MemberBankDepositModel member_bank_deposit = 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_deposit.UpdateMemberBankDeposit
message UpdateMemberBankDepositRequest {
message Request {
string id = 1;
string name = 3;
2022-08-30 08:32:03 +00:00
double amount = 5;
2022-08-13 20:18:21 +00:00
optional string memo = 7;
}
bet.beteran.core.network.Client client = 1;
Request request = 2;
}
message UpdateMemberBankDepositResponse {
message Result {
2022-08-28 13:37:36 +00:00
bet.beteran.member_bank_deposit.MemberBankDepositModel member_bank_deposit = 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_deposit.UpdateMemberBankDepositForState
message UpdateMemberBankDepositForStateRequest {
message Request {
string id = 1;
bet.beteran.member_bank_deposit.MemberBankDepositState state = 2;
}
bet.beteran.core.network.Client client = 1;
Request request = 2;
}
message UpdateMemberBankDepositForStateResponse {
message Result {
2022-08-28 13:37:36 +00:00
bet.beteran.member_bank_deposit.MemberBankDepositModel member_bank_deposit = 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_deposit.DeleteMemberBankDeposit
message DeleteMemberBankDepositRequest {
message Request {
string id = 1;
}
bet.beteran.core.network.Client client = 1;
Request request = 2;
}
message DeleteMemberBankDepositResponse {
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_deposit.AfterUpdateMemberBankDepositForState
message AfterUpdateMemberBankDepositForState {
message Event {
bet.beteran.member_bank_deposit.MemberBankDepositModel member_bank_deposit = 1;
}
bet.beteran.core.network.Client client = 1;
Event event = 2;
}