syntax = "proto3"; package bet.beteran.c2se.common.bank; import "protobuf/rpc/error.proto"; import "protobuf/pagination/pagination.proto"; import "protobuf/pagination/search.proto"; import "protobuf/pagination/sort.proto"; import "models/account/bank.proto"; // subject = bet.beteran.c2se.common.bank.CreateBank message CreateBankRequest { string name = 1; bool show = 2; bool can_use = 3; optional string memo = 4; optional uint64 expires_at = 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.c2se.common.bank.ListBanks message ListBanksRequest { optional bet.protobuf.pagination.Pagination pagination = 1; repeated bet.protobuf.pagination.Search searches = 2; repeated bet.protobuf.pagination.Sort sorts = 3; optional string name_like = 4; optional bool show = 5; optional bool can_use = 6; optional string memo_like = 7; } 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.c2se.common.bank.UpdateBank message UpdateBankRequest { string id = 1; string name = 2; bool show = 3; bool can_use = 4; optional string memo = 5; } message UpdateBankResponse { message Result { bet.beteran.account.Bank bank = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.c2se.common.bank.DeleteBank message DeleteBankRequest { string id = 1; } message DeleteBankResponse { message Result { } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; }