beteran-protobuf/proto/c2se/bank.proto

85 lines
1.7 KiB
Protocol Buffer
Raw Normal View History

2022-08-13 20:18:21 +00:00
syntax = "proto3";
package bet.beteran.c2se.bank;
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/bank.proto";
message CreateBankRequest {
string name = 1;
uint32 sort_order = 2;
bool show = 3;
bool can_use = 4;
optional string memo = 5;
}
message CreateBankResponse {
message Result {
bet.beteran.bank.Bank bank = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message ListBanksRequest {
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;
}
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;
}
message GetBankRequest {
string id = 1;
}
message GetBankResponse {
message Result {
bet.beteran.bank.Bank bank = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message UpdateBankRequest {
string id = 1;
string name = 2;
uint32 sort_order = 3;
bool show = 4;
bool can_use = 5;
optional string memo = 6;
}
message UpdateBankResponse {
message Result {
bet.beteran.bank.Bank bank = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message DeleteBankRequest {
string id = 1;
}
message DeleteBankResponse {
message Result {
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}