2022-08-13 20:18:21 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package bet.beteran.ss.bank;
|
|
|
|
|
|
|
|
import "models/core/network.proto";
|
|
|
|
import "protobuf/rpc.proto";
|
|
|
|
import "protobuf/pagination.proto";
|
|
|
|
import "models/bank.proto";
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.bank.CreateBank;
|
|
|
|
message CreateBankRequest {
|
|
|
|
message Request {
|
|
|
|
string name = 1;
|
|
|
|
uint32 sort_order = 2;
|
|
|
|
bool show = 3;
|
|
|
|
bool can_use = 4;
|
|
|
|
optional string memo = 5;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateBankResponse {
|
|
|
|
message Result {
|
|
|
|
bet.beteran.bank.Bank bank = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.bank.ListBanks;
|
|
|
|
message ListBanksRequest {
|
|
|
|
message Request {
|
|
|
|
message Search {
|
|
|
|
optional string name_like = 1;
|
|
|
|
optional bool show = 2;
|
|
|
|
optional bool can_use = 3;
|
|
|
|
optional string memo_like = 4;
|
|
|
|
}
|
|
|
|
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 ListBanksResponse {
|
|
|
|
message Result {
|
2022-09-01 17:17:19 +00:00
|
|
|
uint64 total_count = 1;
|
|
|
|
repeated bet.beteran.bank.Bank banks = 2;
|
2022-08-13 20:18:21 +00:00
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.bank.GetBank
|
|
|
|
message GetBankRequest {
|
|
|
|
message Request {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetBankResponse {
|
|
|
|
message Result {
|
|
|
|
bet.beteran.bank.Bank bank = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.bank.UpdateBank
|
|
|
|
message UpdateBankRequest {
|
|
|
|
message Request {
|
|
|
|
string id = 1;
|
|
|
|
string name = 2;
|
|
|
|
uint32 sort_order = 3;
|
|
|
|
bool show = 4;
|
|
|
|
bool can_use = 5;
|
|
|
|
optional string memo = 6;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateBankResponse {
|
|
|
|
message Result {
|
|
|
|
bet.beteran.bank.Bank bank = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.bank.DeleteBank
|
|
|
|
message DeleteBankRequest {
|
|
|
|
message Request {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteBankResponse {
|
|
|
|
message Result {
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|