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

33 lines
825 B
Protocol Buffer
Raw Normal View History

2022-08-18 03:40:03 +00:00
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 {
2022-09-01 17:17:19 +00:00
uint64 total_count = 1;
repeated bet.beteran.api.vendor.Vendor vendors = 2;
2022-08-18 03:40:03 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}