beteran-protobuf/proto/ss/api/vendor.proto
2022-08-18 03:40:03 +00:00

38 lines
962 B
Protocol Buffer

syntax = "proto3";
package bet.beteran.ss.api.vendor;
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/core/network.proto";
import "models/api/vendor.proto";
// subject = bet.beteran.ss.api.vendor.ListVendors
message ListVendorsRequest {
message Request {
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;
}
bet.beteran.core.network.Client client = 1;
Request request = 2;
}
message ListVendorsResponse {
message Result {
repeated bet.beteran.api.vendor.Vendor vendors = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}