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 { repeated bet.beteran.bank.Bank banks = 1; } 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; }