|
@@ -541,6 +541,166 @@ func (x *SearchList) GetIsCollected() bool {
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
+//
|
|
|
+type SearchLimitReq struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
|
|
|
+ TimeOut int64 `protobuf:"varint,2,opt,name=timeOut,proto3" json:"timeOut,omitempty"`
|
|
|
+ Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
|
|
|
+ Flag int64 `protobuf:"varint,4,opt,name=flag,proto3" json:"flag,omitempty"`
|
|
|
+ Percentage int64 `protobuf:"varint,5,opt,name=percentage,proto3" json:"percentage,omitempty"`
|
|
|
+ UserId string `protobuf:"bytes,6,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
|
+ SearchType string `protobuf:"bytes,7,opt,name=searchType,proto3" json:"searchType,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitReq) Reset() {
|
|
|
+ *x = SearchLimitReq{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_bxcore_proto_msgTypes[4]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitReq) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*SearchLimitReq) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *SearchLimitReq) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_bxcore_proto_msgTypes[4]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+// Deprecated: Use SearchLimitReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*SearchLimitReq) Descriptor() ([]byte, []int) {
|
|
|
+ return file_bxcore_proto_rawDescGZIP(), []int{4}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitReq) GetAppid() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Appid
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitReq) GetTimeOut() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.TimeOut
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitReq) GetCount() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Count
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitReq) GetFlag() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Flag
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitReq) GetPercentage() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Percentage
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitReq) GetUserId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.UserId
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitReq) GetSearchType() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.SearchType
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+//
|
|
|
+type SearchLimitResp struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ ErrCode int64 `protobuf:"varint,1,opt,name=err_code,json=errCode,proto3" json:"err_code,omitempty"`
|
|
|
+ ErrMsg string `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
|
|
|
+ Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitResp) Reset() {
|
|
|
+ *x = SearchLimitResp{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_bxcore_proto_msgTypes[5]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitResp) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*SearchLimitResp) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *SearchLimitResp) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_bxcore_proto_msgTypes[5]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+// Deprecated: Use SearchLimitResp.ProtoReflect.Descriptor instead.
|
|
|
+func (*SearchLimitResp) Descriptor() ([]byte, []int) {
|
|
|
+ return file_bxcore_proto_rawDescGZIP(), []int{5}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitResp) GetErrCode() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.ErrCode
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitResp) GetErrMsg() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ErrMsg
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchLimitResp) GetData() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Data
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
var File_bxcore_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_bxcore_proto_rawDesc = []byte{
|
|
@@ -629,12 +789,34 @@ var file_bxcore_proto_rawDesc = []byte{
|
|
|
0x74, 0x6c, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
|
|
|
0x12, 0x20, 0x0a, 0x0b, 0x69, 0x73, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18,
|
|
|
0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74,
|
|
|
- 0x65, 0x64, 0x32, 0x40, 0x0a, 0x06, 0x42, 0x78, 0x43, 0x6f, 0x72, 0x65, 0x12, 0x36, 0x0a, 0x0d,
|
|
|
- 0x47, 0x65, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x11, 0x2e,
|
|
|
- 0x62, 0x78, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71,
|
|
|
- 0x1a, 0x12, 0x2e, 0x62, 0x78, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
|
|
|
- 0x52, 0x65, 0x73, 0x70, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x62, 0x78, 0x63, 0x6f, 0x72, 0x65,
|
|
|
- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x65, 0x64, 0x22, 0xc2, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4c, 0x69, 0x6d,
|
|
|
+ 0x69, 0x74, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01,
|
|
|
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x74,
|
|
|
+ 0x69, 0x6d, 0x65, 0x4f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69,
|
|
|
+ 0x6d, 0x65, 0x4f, 0x75, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03,
|
|
|
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66,
|
|
|
+ 0x6c, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x12,
|
|
|
+ 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20,
|
|
|
+ 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x12,
|
|
|
+ 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
+ 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x61, 0x72, 0x63,
|
|
|
+ 0x68, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x61,
|
|
|
+ 0x72, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x22, 0x59, 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63,
|
|
|
+ 0x68, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x72,
|
|
|
+ 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x72,
|
|
|
+ 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67,
|
|
|
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x12,
|
|
|
+ 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61,
|
|
|
+ 0x74, 0x61, 0x32, 0x80, 0x01, 0x0a, 0x06, 0x42, 0x78, 0x43, 0x6f, 0x72, 0x65, 0x12, 0x36, 0x0a,
|
|
|
+ 0x0d, 0x47, 0x65, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x11,
|
|
|
+ 0x2e, 0x62, 0x78, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65,
|
|
|
+ 0x71, 0x1a, 0x12, 0x2e, 0x62, 0x78, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63,
|
|
|
+ 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3e, 0x0a, 0x0b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4c,
|
|
|
+ 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x2e, 0x62, 0x78, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65,
|
|
|
+ 0x61, 0x72, 0x63, 0x68, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x62,
|
|
|
+ 0x78, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4c, 0x69, 0x6d, 0x69,
|
|
|
+ 0x74, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x62, 0x78, 0x63, 0x6f, 0x72,
|
|
|
+ 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -649,20 +831,24 @@ func file_bxcore_proto_rawDescGZIP() []byte {
|
|
|
return file_bxcore_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_bxcore_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
|
+var file_bxcore_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
|
var file_bxcore_proto_goTypes = []interface{}{
|
|
|
- (*SearchReq)(nil), // 0: bxcore.SearchReq
|
|
|
- (*SearchResp)(nil), // 1: bxcore.SearchResp
|
|
|
- (*SearchData)(nil), // 2: bxcore.SearchData
|
|
|
- (*SearchList)(nil), // 3: bxcore.SearchList
|
|
|
+ (*SearchReq)(nil), // 0: bxcore.SearchReq
|
|
|
+ (*SearchResp)(nil), // 1: bxcore.SearchResp
|
|
|
+ (*SearchData)(nil), // 2: bxcore.SearchData
|
|
|
+ (*SearchList)(nil), // 3: bxcore.SearchList
|
|
|
+ (*SearchLimitReq)(nil), // 4: bxcore.SearchLimitReq
|
|
|
+ (*SearchLimitResp)(nil), // 5: bxcore.SearchLimitResp
|
|
|
}
|
|
|
var file_bxcore_proto_depIdxs = []int32{
|
|
|
2, // 0: bxcore.SearchResp.data:type_name -> bxcore.SearchData
|
|
|
3, // 1: bxcore.SearchData.list:type_name -> bxcore.SearchList
|
|
|
0, // 2: bxcore.BxCore.GetSearchList:input_type -> bxcore.SearchReq
|
|
|
- 1, // 3: bxcore.BxCore.GetSearchList:output_type -> bxcore.SearchResp
|
|
|
- 3, // [3:4] is the sub-list for method output_type
|
|
|
- 2, // [2:3] is the sub-list for method input_type
|
|
|
+ 4, // 3: bxcore.BxCore.SearchLimit:input_type -> bxcore.SearchLimitReq
|
|
|
+ 1, // 4: bxcore.BxCore.GetSearchList:output_type -> bxcore.SearchResp
|
|
|
+ 5, // 5: bxcore.BxCore.SearchLimit:output_type -> bxcore.SearchLimitResp
|
|
|
+ 4, // [4:6] is the sub-list for method output_type
|
|
|
+ 2, // [2:4] is the sub-list for method input_type
|
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
|
0, // [0:2] is the sub-list for field type_name
|
|
@@ -722,6 +908,30 @@ func file_bxcore_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
+ file_bxcore_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*SearchLimitReq); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_bxcore_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*SearchLimitResp); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
type x struct{}
|
|
|
out := protoimpl.TypeBuilder{
|
|
@@ -729,7 +939,7 @@ func file_bxcore_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_bxcore_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 4,
|
|
|
+ NumMessages: 6,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|