beteran-protobuf/proto/c2se/api/vendor.proto

33 lines
825 B
Protocol Buffer

syntax = "proto3";
package bet.beteran.c2se.api.vendor;
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/core/network.proto";
import "models/api/vendor.proto";
message ListVendorsRequest {
message Search {
optional uint64 company_id = 1;
optional uint64 vendor_id = 2;
optional string key_like = 3;
optional string name_like = 4;
optional string category_like = 5;
optional string is_enable = 6;
}
optional bet.protobuf.pagination.Pagination pagination = 1;
repeated bet.protobuf.pagination.Sort sorts = 2;
optional Search search = 3;
}
message ListVendorsResponse {
message Result {
uint64 total_count = 1;
repeated bet.beteran.api.vendor.Vendor vendors = 2;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}