beteran-protobuf/proto/ss/account/bank.proto

80 lines
1.9 KiB
Protocol Buffer
Raw Normal View History

2022-08-12 06:42:07 +00:00
syntax = "proto3";
package bet.beteran.ss.account.bank;
import "protobuf/rpc/error.proto";
import "protobuf/pagination/pagination.proto";
import "protobuf/pagination/search.proto";
import "protobuf/pagination/sort.proto";
import "models/core/network.proto";
import "models/account/bank.proto";
// subject = bet.beteran.ss.account.bank.ListBanks;
message ListBanksRequest {
bet.beteran.core.network.Client client = 1;
optional bet.protobuf.pagination.Pagination pagination = 2;
repeated bet.protobuf.pagination.Search searches = 3;
repeated bet.protobuf.pagination.Sort sorts = 4;
optional string name_like = 5;
optional bool show = 6;
optional bool can_use = 7;
optional string memo_like = 8;
}
message ListBanksResponse {
message Result {
repeated bet.beteran.account.Bank banks = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.account.bank.CreateBank;
message CreateBankRequest {
bet.beteran.core.network.Client client = 1;
string name = 2;
bool show = 3;
bool can_use = 4;
optional string memo = 5;
}
message CreateBankResponse {
message Result {
bet.beteran.account.Bank bank = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.account.bank.UpdateBank
message UpdateBankRequest {
bet.beteran.core.network.Client client = 1;
string id = 2;
string name = 3;
bool show = 4;
bool can_use = 5;
optional string memo = 6;
}
message UpdateBankResponse {
message Result {
bet.beteran.account.Bank bank = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.account.bank.DeleteBank
message DeleteBankRequest {
bet.beteran.core.network.Client client = 1;
string id = 2;
}
message DeleteBankResponse {
message Result {
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}