diff --git a/build/rpc.json b/build/rpc.json index 3a4d050..19f59a3 100644 --- a/build/rpc.json +++ b/build/rpc.json @@ -3523,6 +3523,15 @@ ], "isDeprecated": false }, + { + "name": "createIPItems", + "requestMessageName": "CreateIPItemsRequest", + "responseMessageName": "CreateIPItemsResponse", + "code": "rpc createIPItems(CreateIPItemsRequest) returns (CreateIPItemsResponse);", + "doc": "创建一组IP", + "roles": [], + "isDeprecated": false + }, { "name": "updateIPItem", "requestMessageName": "UpdateIPItemRequest", @@ -10466,7 +10475,10 @@ "responseMessageName": "RPCSuccess", "code": "rpc updateServerName(UpdateServerNameRequest) returns (RPCSuccess);", "doc": "修改服务名称", - "roles": [], + "roles": [ + "admin", + "user" + ], "isDeprecated": false } ], @@ -14415,6 +14427,16 @@ "code": "message CreateIPItemResponse {\n\tint64 ipItemId = 1;\n}", "doc": "" }, + { + "name": "CreateIPItemsRequest", + "code": "message CreateIPItemsRequest {\n\trepeated IPItem ipItems = 1; // 要创建的IP列表\n\n\n\tmessage IPItem {\n\t\tint64 ipListId = 1; // IP列表ID\n\t\tstring ipFrom = 2; // 开始IP\n\t\tstring ipTo = 3; // 结束IP(可选)\n\t\tint64 expiredAt = 4; // 过期时间戳(可选)\n\t\tstring reason = 5; // 加入理由(可选)\n\t\tstring type = 6; // 类型\n\t\tstring eventLevel = 7; // 级别\n\n\t\tint64 nodeId = 8; // 所属节点ID\n\t\tint64 serverId = 9; // 所属服务ID\n\n\t\tint64 sourceNodeId = 10;\n\t\tint64 sourceServerId = 11;\n\t\tint64 sourceHTTPFirewallPolicyId = 12;\n\t\tint64 sourceHTTPFirewallRuleGroupId = 13;\n\t\tint64 sourceHTTPFirewallRuleSetId = 14;\n\t}\n}", + "doc": "创建一组IP" + }, + { + "name": "CreateIPItemsResponse", + "code": "message CreateIPItemsResponse {\n\trepeated int64 ipItemIds = 1; // 创建后的IP ID列表\n}", + "doc": "" + }, { "name": "CreateIPLibraryArtifactRequest", "code": "message CreateIPLibraryArtifactRequest {\n\tint64 fileId = 1;\n\tbytes metaJSON = 2;\n\tstring name = 3;\n}", diff --git a/pkg/rpc/pb/service_ip_item.pb.go b/pkg/rpc/pb/service_ip_item.pb.go index 13dbc09..8f113a3 100644 --- a/pkg/rpc/pb/service_ip_item.pb.go +++ b/pkg/rpc/pb/service_ip_item.pb.go @@ -228,6 +228,101 @@ func (x *CreateIPItemResponse) GetIpItemId() int64 { return 0 } +// 创建一组IP +type CreateIPItemsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpItems []*CreateIPItemsRequest_IPItem `protobuf:"bytes,1,rep,name=ipItems,proto3" json:"ipItems,omitempty"` // 要创建的IP列表 +} + +func (x *CreateIPItemsRequest) Reset() { + *x = CreateIPItemsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_item_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateIPItemsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateIPItemsRequest) ProtoMessage() {} + +func (x *CreateIPItemsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_item_proto_msgTypes[2] + 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 CreateIPItemsRequest.ProtoReflect.Descriptor instead. +func (*CreateIPItemsRequest) Descriptor() ([]byte, []int) { + return file_service_ip_item_proto_rawDescGZIP(), []int{2} +} + +func (x *CreateIPItemsRequest) GetIpItems() []*CreateIPItemsRequest_IPItem { + if x != nil { + return x.IpItems + } + return nil +} + +type CreateIPItemsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpItemIds []int64 `protobuf:"varint,1,rep,packed,name=ipItemIds,proto3" json:"ipItemIds,omitempty"` // 创建后的IP ID列表 +} + +func (x *CreateIPItemsResponse) Reset() { + *x = CreateIPItemsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_item_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateIPItemsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateIPItemsResponse) ProtoMessage() {} + +func (x *CreateIPItemsResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_item_proto_msgTypes[3] + 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 CreateIPItemsResponse.ProtoReflect.Descriptor instead. +func (*CreateIPItemsResponse) Descriptor() ([]byte, []int) { + return file_service_ip_item_proto_rawDescGZIP(), []int{3} +} + +func (x *CreateIPItemsResponse) GetIpItemIds() []int64 { + if x != nil { + return x.IpItemIds + } + return nil +} + // 修改IP type UpdateIPItemRequest struct { state protoimpl.MessageState @@ -246,7 +341,7 @@ type UpdateIPItemRequest struct { func (x *UpdateIPItemRequest) Reset() { *x = UpdateIPItemRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[2] + mi := &file_service_ip_item_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -259,7 +354,7 @@ func (x *UpdateIPItemRequest) String() string { func (*UpdateIPItemRequest) ProtoMessage() {} func (x *UpdateIPItemRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[2] + mi := &file_service_ip_item_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -272,7 +367,7 @@ func (x *UpdateIPItemRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateIPItemRequest.ProtoReflect.Descriptor instead. func (*UpdateIPItemRequest) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{2} + return file_service_ip_item_proto_rawDescGZIP(), []int{4} } func (x *UpdateIPItemRequest) GetIpItemId() int64 { @@ -340,7 +435,7 @@ type DeleteIPItemRequest struct { func (x *DeleteIPItemRequest) Reset() { *x = DeleteIPItemRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[3] + mi := &file_service_ip_item_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -353,7 +448,7 @@ func (x *DeleteIPItemRequest) String() string { func (*DeleteIPItemRequest) ProtoMessage() {} func (x *DeleteIPItemRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[3] + mi := &file_service_ip_item_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -366,7 +461,7 @@ func (x *DeleteIPItemRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteIPItemRequest.ProtoReflect.Descriptor instead. func (*DeleteIPItemRequest) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{3} + return file_service_ip_item_proto_rawDescGZIP(), []int{5} } func (x *DeleteIPItemRequest) GetIpItemId() int64 { @@ -409,7 +504,7 @@ type DeleteIPItemsRequest struct { func (x *DeleteIPItemsRequest) Reset() { *x = DeleteIPItemsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[4] + mi := &file_service_ip_item_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -422,7 +517,7 @@ func (x *DeleteIPItemsRequest) String() string { func (*DeleteIPItemsRequest) ProtoMessage() {} func (x *DeleteIPItemsRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[4] + mi := &file_service_ip_item_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -435,7 +530,7 @@ func (x *DeleteIPItemsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteIPItemsRequest.ProtoReflect.Descriptor instead. func (*DeleteIPItemsRequest) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{4} + return file_service_ip_item_proto_rawDescGZIP(), []int{6} } func (x *DeleteIPItemsRequest) GetIpItemIds() []int64 { @@ -461,7 +556,7 @@ type CountIPItemsWithListIdRequest struct { func (x *CountIPItemsWithListIdRequest) Reset() { *x = CountIPItemsWithListIdRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[5] + mi := &file_service_ip_item_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -474,7 +569,7 @@ func (x *CountIPItemsWithListIdRequest) String() string { func (*CountIPItemsWithListIdRequest) ProtoMessage() {} func (x *CountIPItemsWithListIdRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[5] + mi := &file_service_ip_item_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -487,7 +582,7 @@ func (x *CountIPItemsWithListIdRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CountIPItemsWithListIdRequest.ProtoReflect.Descriptor instead. func (*CountIPItemsWithListIdRequest) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{5} + return file_service_ip_item_proto_rawDescGZIP(), []int{7} } func (x *CountIPItemsWithListIdRequest) GetIpListId() int64 { @@ -543,7 +638,7 @@ type ListIPItemsWithListIdRequest struct { func (x *ListIPItemsWithListIdRequest) Reset() { *x = ListIPItemsWithListIdRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[6] + mi := &file_service_ip_item_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -556,7 +651,7 @@ func (x *ListIPItemsWithListIdRequest) String() string { func (*ListIPItemsWithListIdRequest) ProtoMessage() {} func (x *ListIPItemsWithListIdRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[6] + mi := &file_service_ip_item_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -569,7 +664,7 @@ func (x *ListIPItemsWithListIdRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListIPItemsWithListIdRequest.ProtoReflect.Descriptor instead. func (*ListIPItemsWithListIdRequest) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{6} + return file_service_ip_item_proto_rawDescGZIP(), []int{8} } func (x *ListIPItemsWithListIdRequest) GetIpListId() int64 { @@ -632,7 +727,7 @@ type ListIPItemsWithListIdResponse struct { func (x *ListIPItemsWithListIdResponse) Reset() { *x = ListIPItemsWithListIdResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[7] + mi := &file_service_ip_item_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -645,7 +740,7 @@ func (x *ListIPItemsWithListIdResponse) String() string { func (*ListIPItemsWithListIdResponse) ProtoMessage() {} func (x *ListIPItemsWithListIdResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[7] + mi := &file_service_ip_item_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -658,7 +753,7 @@ func (x *ListIPItemsWithListIdResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListIPItemsWithListIdResponse.ProtoReflect.Descriptor instead. func (*ListIPItemsWithListIdResponse) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{7} + return file_service_ip_item_proto_rawDescGZIP(), []int{9} } func (x *ListIPItemsWithListIdResponse) GetIpItems() []*IPItem { @@ -680,7 +775,7 @@ type FindEnabledIPItemRequest struct { func (x *FindEnabledIPItemRequest) Reset() { *x = FindEnabledIPItemRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[8] + mi := &file_service_ip_item_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -693,7 +788,7 @@ func (x *FindEnabledIPItemRequest) String() string { func (*FindEnabledIPItemRequest) ProtoMessage() {} func (x *FindEnabledIPItemRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[8] + mi := &file_service_ip_item_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -706,7 +801,7 @@ func (x *FindEnabledIPItemRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use FindEnabledIPItemRequest.ProtoReflect.Descriptor instead. func (*FindEnabledIPItemRequest) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{8} + return file_service_ip_item_proto_rawDescGZIP(), []int{10} } func (x *FindEnabledIPItemRequest) GetIpItemId() int64 { @@ -727,7 +822,7 @@ type FindEnabledIPItemResponse struct { func (x *FindEnabledIPItemResponse) Reset() { *x = FindEnabledIPItemResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[9] + mi := &file_service_ip_item_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -740,7 +835,7 @@ func (x *FindEnabledIPItemResponse) String() string { func (*FindEnabledIPItemResponse) ProtoMessage() {} func (x *FindEnabledIPItemResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[9] + mi := &file_service_ip_item_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -753,7 +848,7 @@ func (x *FindEnabledIPItemResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use FindEnabledIPItemResponse.ProtoReflect.Descriptor instead. func (*FindEnabledIPItemResponse) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{9} + return file_service_ip_item_proto_rawDescGZIP(), []int{11} } func (x *FindEnabledIPItemResponse) GetIpItem() *IPItem { @@ -776,7 +871,7 @@ type ListIPItemsAfterVersionRequest struct { func (x *ListIPItemsAfterVersionRequest) Reset() { *x = ListIPItemsAfterVersionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[10] + mi := &file_service_ip_item_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -789,7 +884,7 @@ func (x *ListIPItemsAfterVersionRequest) String() string { func (*ListIPItemsAfterVersionRequest) ProtoMessage() {} func (x *ListIPItemsAfterVersionRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[10] + mi := &file_service_ip_item_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -802,7 +897,7 @@ func (x *ListIPItemsAfterVersionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListIPItemsAfterVersionRequest.ProtoReflect.Descriptor instead. func (*ListIPItemsAfterVersionRequest) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{10} + return file_service_ip_item_proto_rawDescGZIP(), []int{12} } func (x *ListIPItemsAfterVersionRequest) GetVersion() int64 { @@ -830,7 +925,7 @@ type ListIPItemsAfterVersionResponse struct { func (x *ListIPItemsAfterVersionResponse) Reset() { *x = ListIPItemsAfterVersionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[11] + mi := &file_service_ip_item_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -843,7 +938,7 @@ func (x *ListIPItemsAfterVersionResponse) String() string { func (*ListIPItemsAfterVersionResponse) ProtoMessage() {} func (x *ListIPItemsAfterVersionResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[11] + mi := &file_service_ip_item_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -856,7 +951,7 @@ func (x *ListIPItemsAfterVersionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListIPItemsAfterVersionResponse.ProtoReflect.Descriptor instead. func (*ListIPItemsAfterVersionResponse) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{11} + return file_service_ip_item_proto_rawDescGZIP(), []int{13} } func (x *ListIPItemsAfterVersionResponse) GetIpItems() []*IPItem { @@ -879,7 +974,7 @@ type CheckIPItemStatusRequest struct { func (x *CheckIPItemStatusRequest) Reset() { *x = CheckIPItemStatusRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[12] + mi := &file_service_ip_item_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -892,7 +987,7 @@ func (x *CheckIPItemStatusRequest) String() string { func (*CheckIPItemStatusRequest) ProtoMessage() {} func (x *CheckIPItemStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[12] + mi := &file_service_ip_item_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -905,7 +1000,7 @@ func (x *CheckIPItemStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CheckIPItemStatusRequest.ProtoReflect.Descriptor instead. func (*CheckIPItemStatusRequest) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{12} + return file_service_ip_item_proto_rawDescGZIP(), []int{14} } func (x *CheckIPItemStatusRequest) GetIpListId() int64 { @@ -937,7 +1032,7 @@ type CheckIPItemStatusResponse struct { func (x *CheckIPItemStatusResponse) Reset() { *x = CheckIPItemStatusResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[13] + mi := &file_service_ip_item_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -950,7 +1045,7 @@ func (x *CheckIPItemStatusResponse) String() string { func (*CheckIPItemStatusResponse) ProtoMessage() {} func (x *CheckIPItemStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[13] + mi := &file_service_ip_item_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -963,7 +1058,7 @@ func (x *CheckIPItemStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CheckIPItemStatusResponse.ProtoReflect.Descriptor instead. func (*CheckIPItemStatusResponse) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{13} + return file_service_ip_item_proto_rawDescGZIP(), []int{15} } func (x *CheckIPItemStatusResponse) GetIsOk() bool { @@ -1013,7 +1108,7 @@ type ExistsEnabledIPItemRequest struct { func (x *ExistsEnabledIPItemRequest) Reset() { *x = ExistsEnabledIPItemRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[14] + mi := &file_service_ip_item_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1026,7 +1121,7 @@ func (x *ExistsEnabledIPItemRequest) String() string { func (*ExistsEnabledIPItemRequest) ProtoMessage() {} func (x *ExistsEnabledIPItemRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[14] + mi := &file_service_ip_item_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1039,7 +1134,7 @@ func (x *ExistsEnabledIPItemRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ExistsEnabledIPItemRequest.ProtoReflect.Descriptor instead. func (*ExistsEnabledIPItemRequest) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{14} + return file_service_ip_item_proto_rawDescGZIP(), []int{16} } func (x *ExistsEnabledIPItemRequest) GetIpItemId() int64 { @@ -1060,7 +1155,7 @@ type ExistsEnabledIPItemResponse struct { func (x *ExistsEnabledIPItemResponse) Reset() { *x = ExistsEnabledIPItemResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[15] + mi := &file_service_ip_item_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1073,7 +1168,7 @@ func (x *ExistsEnabledIPItemResponse) String() string { func (*ExistsEnabledIPItemResponse) ProtoMessage() {} func (x *ExistsEnabledIPItemResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[15] + mi := &file_service_ip_item_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1086,7 +1181,7 @@ func (x *ExistsEnabledIPItemResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ExistsEnabledIPItemResponse.ProtoReflect.Descriptor instead. func (*ExistsEnabledIPItemResponse) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{15} + return file_service_ip_item_proto_rawDescGZIP(), []int{17} } func (x *ExistsEnabledIPItemResponse) GetExists() bool { @@ -1113,7 +1208,7 @@ type CountAllEnabledIPItemsRequest struct { func (x *CountAllEnabledIPItemsRequest) Reset() { *x = CountAllEnabledIPItemsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[16] + mi := &file_service_ip_item_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1126,7 +1221,7 @@ func (x *CountAllEnabledIPItemsRequest) String() string { func (*CountAllEnabledIPItemsRequest) ProtoMessage() {} func (x *CountAllEnabledIPItemsRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[16] + mi := &file_service_ip_item_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1139,7 +1234,7 @@ func (x *CountAllEnabledIPItemsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CountAllEnabledIPItemsRequest.ProtoReflect.Descriptor instead. func (*CountAllEnabledIPItemsRequest) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{16} + return file_service_ip_item_proto_rawDescGZIP(), []int{18} } func (x *CountAllEnabledIPItemsRequest) GetKeyword() string { @@ -1203,7 +1298,7 @@ type ListAllEnabledIPItemsRequest struct { func (x *ListAllEnabledIPItemsRequest) Reset() { *x = ListAllEnabledIPItemsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[17] + mi := &file_service_ip_item_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1216,7 +1311,7 @@ func (x *ListAllEnabledIPItemsRequest) String() string { func (*ListAllEnabledIPItemsRequest) ProtoMessage() {} func (x *ListAllEnabledIPItemsRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[17] + mi := &file_service_ip_item_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1229,7 +1324,7 @@ func (x *ListAllEnabledIPItemsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAllEnabledIPItemsRequest.ProtoReflect.Descriptor instead. func (*ListAllEnabledIPItemsRequest) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{17} + return file_service_ip_item_proto_rawDescGZIP(), []int{19} } func (x *ListAllEnabledIPItemsRequest) GetKeyword() string { @@ -1299,7 +1394,7 @@ type ListAllEnabledIPItemsResponse struct { func (x *ListAllEnabledIPItemsResponse) Reset() { *x = ListAllEnabledIPItemsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[18] + mi := &file_service_ip_item_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1312,7 +1407,7 @@ func (x *ListAllEnabledIPItemsResponse) String() string { func (*ListAllEnabledIPItemsResponse) ProtoMessage() {} func (x *ListAllEnabledIPItemsResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[18] + mi := &file_service_ip_item_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1325,7 +1420,7 @@ func (x *ListAllEnabledIPItemsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAllEnabledIPItemsResponse.ProtoReflect.Descriptor instead. func (*ListAllEnabledIPItemsResponse) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{18} + return file_service_ip_item_proto_rawDescGZIP(), []int{20} } func (x *ListAllEnabledIPItemsResponse) GetResults() []*ListAllEnabledIPItemsResponse_Result { @@ -1345,7 +1440,7 @@ type UpdateIPItemsReadRequest struct { func (x *UpdateIPItemsReadRequest) Reset() { *x = UpdateIPItemsReadRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[19] + mi := &file_service_ip_item_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1358,7 +1453,7 @@ func (x *UpdateIPItemsReadRequest) String() string { func (*UpdateIPItemsReadRequest) ProtoMessage() {} func (x *UpdateIPItemsReadRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[19] + mi := &file_service_ip_item_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1371,7 +1466,158 @@ func (x *UpdateIPItemsReadRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateIPItemsReadRequest.ProtoReflect.Descriptor instead. func (*UpdateIPItemsReadRequest) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{19} + return file_service_ip_item_proto_rawDescGZIP(), []int{21} +} + +type CreateIPItemsRequest_IPItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpListId int64 `protobuf:"varint,1,opt,name=ipListId,proto3" json:"ipListId,omitempty"` // IP列表ID + IpFrom string `protobuf:"bytes,2,opt,name=ipFrom,proto3" json:"ipFrom,omitempty"` // 开始IP + IpTo string `protobuf:"bytes,3,opt,name=ipTo,proto3" json:"ipTo,omitempty"` // 结束IP(可选) + ExpiredAt int64 `protobuf:"varint,4,opt,name=expiredAt,proto3" json:"expiredAt,omitempty"` // 过期时间戳(可选) + Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"` // 加入理由(可选) + Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` // 类型 + EventLevel string `protobuf:"bytes,7,opt,name=eventLevel,proto3" json:"eventLevel,omitempty"` // 级别 + NodeId int64 `protobuf:"varint,8,opt,name=nodeId,proto3" json:"nodeId,omitempty"` // 所属节点ID + ServerId int64 `protobuf:"varint,9,opt,name=serverId,proto3" json:"serverId,omitempty"` // 所属服务ID + SourceNodeId int64 `protobuf:"varint,10,opt,name=sourceNodeId,proto3" json:"sourceNodeId,omitempty"` + SourceServerId int64 `protobuf:"varint,11,opt,name=sourceServerId,proto3" json:"sourceServerId,omitempty"` + SourceHTTPFirewallPolicyId int64 `protobuf:"varint,12,opt,name=sourceHTTPFirewallPolicyId,proto3" json:"sourceHTTPFirewallPolicyId,omitempty"` + SourceHTTPFirewallRuleGroupId int64 `protobuf:"varint,13,opt,name=sourceHTTPFirewallRuleGroupId,proto3" json:"sourceHTTPFirewallRuleGroupId,omitempty"` + SourceHTTPFirewallRuleSetId int64 `protobuf:"varint,14,opt,name=sourceHTTPFirewallRuleSetId,proto3" json:"sourceHTTPFirewallRuleSetId,omitempty"` +} + +func (x *CreateIPItemsRequest_IPItem) Reset() { + *x = CreateIPItemsRequest_IPItem{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_item_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateIPItemsRequest_IPItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateIPItemsRequest_IPItem) ProtoMessage() {} + +func (x *CreateIPItemsRequest_IPItem) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_item_proto_msgTypes[22] + 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 CreateIPItemsRequest_IPItem.ProtoReflect.Descriptor instead. +func (*CreateIPItemsRequest_IPItem) Descriptor() ([]byte, []int) { + return file_service_ip_item_proto_rawDescGZIP(), []int{2, 0} +} + +func (x *CreateIPItemsRequest_IPItem) GetIpListId() int64 { + if x != nil { + return x.IpListId + } + return 0 +} + +func (x *CreateIPItemsRequest_IPItem) GetIpFrom() string { + if x != nil { + return x.IpFrom + } + return "" +} + +func (x *CreateIPItemsRequest_IPItem) GetIpTo() string { + if x != nil { + return x.IpTo + } + return "" +} + +func (x *CreateIPItemsRequest_IPItem) GetExpiredAt() int64 { + if x != nil { + return x.ExpiredAt + } + return 0 +} + +func (x *CreateIPItemsRequest_IPItem) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *CreateIPItemsRequest_IPItem) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *CreateIPItemsRequest_IPItem) GetEventLevel() string { + if x != nil { + return x.EventLevel + } + return "" +} + +func (x *CreateIPItemsRequest_IPItem) GetNodeId() int64 { + if x != nil { + return x.NodeId + } + return 0 +} + +func (x *CreateIPItemsRequest_IPItem) GetServerId() int64 { + if x != nil { + return x.ServerId + } + return 0 +} + +func (x *CreateIPItemsRequest_IPItem) GetSourceNodeId() int64 { + if x != nil { + return x.SourceNodeId + } + return 0 +} + +func (x *CreateIPItemsRequest_IPItem) GetSourceServerId() int64 { + if x != nil { + return x.SourceServerId + } + return 0 +} + +func (x *CreateIPItemsRequest_IPItem) GetSourceHTTPFirewallPolicyId() int64 { + if x != nil { + return x.SourceHTTPFirewallPolicyId + } + return 0 +} + +func (x *CreateIPItemsRequest_IPItem) GetSourceHTTPFirewallRuleGroupId() int64 { + if x != nil { + return x.SourceHTTPFirewallRuleGroupId + } + return 0 +} + +func (x *CreateIPItemsRequest_IPItem) GetSourceHTTPFirewallRuleSetId() int64 { + if x != nil { + return x.SourceHTTPFirewallRuleSetId + } + return 0 } type ListAllEnabledIPItemsResponse_Result struct { @@ -1388,7 +1634,7 @@ type ListAllEnabledIPItemsResponse_Result struct { func (x *ListAllEnabledIPItemsResponse_Result) Reset() { *x = ListAllEnabledIPItemsResponse_Result{} if protoimpl.UnsafeEnabled { - mi := &file_service_ip_item_proto_msgTypes[20] + mi := &file_service_ip_item_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1401,7 +1647,7 @@ func (x *ListAllEnabledIPItemsResponse_Result) String() string { func (*ListAllEnabledIPItemsResponse_Result) ProtoMessage() {} func (x *ListAllEnabledIPItemsResponse_Result) ProtoReflect() protoreflect.Message { - mi := &file_service_ip_item_proto_msgTypes[20] + mi := &file_service_ip_item_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1414,7 +1660,7 @@ func (x *ListAllEnabledIPItemsResponse_Result) ProtoReflect() protoreflect.Messa // Deprecated: Use ListAllEnabledIPItemsResponse_Result.ProtoReflect.Descriptor instead. func (*ListAllEnabledIPItemsResponse_Result) Descriptor() ([]byte, []int) { - return file_service_ip_item_proto_rawDescGZIP(), []int{18, 0} + return file_service_ip_item_proto_rawDescGZIP(), []int{20, 0} } func (x *ListAllEnabledIPItemsResponse_Result) GetIpList() *IPList { @@ -1495,7 +1741,48 @@ var file_service_ip_item_proto_rawDesc = []byte{ 0x65, 0x74, 0x49, 0x64, 0x22, 0x32, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x70, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, - 0x69, 0x70, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x22, 0xc7, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, + 0x69, 0x70, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x22, 0xd6, 0x04, 0x0a, 0x14, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x39, 0x0a, 0x07, 0x69, 0x70, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, + 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x50, 0x49, + 0x74, 0x65, 0x6d, 0x52, 0x07, 0x69, 0x70, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0x82, 0x04, 0x0a, + 0x06, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x70, 0x4c, 0x69, 0x73, + 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x70, 0x4c, 0x69, 0x73, + 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x70, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x70, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x69, + 0x70, 0x54, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x70, 0x54, 0x6f, 0x12, + 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x41, 0x74, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x16, 0x0a, + 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, + 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, + 0x65, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, + 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, + 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, + 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x49, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3e, 0x0a, 0x1a, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x48, 0x54, 0x54, 0x50, 0x46, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1a, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x54, 0x54, 0x50, 0x46, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, + 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x1d, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x48, 0x54, 0x54, 0x50, 0x46, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x52, + 0x75, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x1d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x54, 0x54, 0x50, 0x46, 0x69, 0x72, 0x65, + 0x77, 0x61, 0x6c, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, + 0x40, 0x0a, 0x1b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x54, 0x54, 0x50, 0x46, 0x69, 0x72, + 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x49, 0x64, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x1b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x54, 0x54, 0x50, + 0x46, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x49, + 0x64, 0x22, 0x35, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, + 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x70, + 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x69, + 0x70, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x73, 0x22, 0xc7, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x70, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x70, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, @@ -1632,72 +1919,77 @@ var file_service_ip_item_proto_rawDesc = []byte{ 0x6c, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x12, 0x68, 0x74, 0x74, 0x70, 0x46, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x1a, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x61, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x32, 0x84, 0x08, 0x0a, 0x0d, 0x49, 0x50, 0x49, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x32, 0xca, 0x08, 0x0a, 0x0d, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, - 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, - 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x17, 0x2e, - 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, - 0x39, 0x0a, 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, - 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, - 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, - 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x51, 0x0a, 0x16, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4c, 0x69, - 0x73, 0x74, 0x49, 0x64, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x49, - 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, - 0x15, 0x6c, 0x69, 0x73, 0x74, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x57, 0x69, 0x74, 0x68, - 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4c, 0x69, 0x73, 0x74, 0x49, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4c, 0x69, 0x73, - 0x74, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x66, - 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, - 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, - 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, - 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, - 0x17, 0x6c, 0x69, 0x73, 0x74, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x41, 0x66, 0x74, 0x65, - 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, - 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x41, 0x66, 0x74, - 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x50, 0x0a, 0x11, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, - 0x6b, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, - 0x50, 0x49, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, - 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, - 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, - 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, - 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x16, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, - 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, - 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, - 0x0a, 0x15, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, - 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, - 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, - 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x11, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x61, - 0x64, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, - 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, - 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, + 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x18, + 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, + 0x74, 0x65, 0x6d, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, + 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, + 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x37, 0x0a, 0x0c, + 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x17, 0x2e, 0x70, + 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x39, 0x0a, 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, + 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x12, 0x51, 0x0a, 0x16, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, + 0x57, 0x69, 0x74, 0x68, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x57, 0x69, 0x74, 0x68, + 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, + 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x15, 0x6c, 0x69, 0x73, 0x74, 0x49, 0x50, 0x49, 0x74, 0x65, + 0x6d, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x12, 0x20, 0x2e, 0x70, + 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x57, 0x69, 0x74, + 0x68, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, + 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x57, + 0x69, 0x74, 0x68, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x50, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, + 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x17, 0x6c, 0x69, 0x73, 0x74, 0x49, 0x50, 0x49, 0x74, 0x65, + 0x6d, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22, + 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x41, + 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x50, 0x49, 0x74, + 0x65, 0x6d, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x2e, 0x70, + 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x65, 0x78, 0x69, + 0x73, 0x74, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, + 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x51, 0x0a, 0x16, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, + 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, + 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x15, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x20, 0x2e, + 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x41, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, + 0x65, 0x6d, 0x73, 0x52, 0x65, 0x61, 0x64, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x49, 0x50, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1712,77 +2004,83 @@ func file_service_ip_item_proto_rawDescGZIP() []byte { return file_service_ip_item_proto_rawDescData } -var file_service_ip_item_proto_msgTypes = make([]protoimpl.MessageInfo, 21) +var file_service_ip_item_proto_msgTypes = make([]protoimpl.MessageInfo, 24) var file_service_ip_item_proto_goTypes = []interface{}{ (*CreateIPItemRequest)(nil), // 0: pb.CreateIPItemRequest (*CreateIPItemResponse)(nil), // 1: pb.CreateIPItemResponse - (*UpdateIPItemRequest)(nil), // 2: pb.UpdateIPItemRequest - (*DeleteIPItemRequest)(nil), // 3: pb.DeleteIPItemRequest - (*DeleteIPItemsRequest)(nil), // 4: pb.DeleteIPItemsRequest - (*CountIPItemsWithListIdRequest)(nil), // 5: pb.CountIPItemsWithListIdRequest - (*ListIPItemsWithListIdRequest)(nil), // 6: pb.ListIPItemsWithListIdRequest - (*ListIPItemsWithListIdResponse)(nil), // 7: pb.ListIPItemsWithListIdResponse - (*FindEnabledIPItemRequest)(nil), // 8: pb.FindEnabledIPItemRequest - (*FindEnabledIPItemResponse)(nil), // 9: pb.FindEnabledIPItemResponse - (*ListIPItemsAfterVersionRequest)(nil), // 10: pb.ListIPItemsAfterVersionRequest - (*ListIPItemsAfterVersionResponse)(nil), // 11: pb.ListIPItemsAfterVersionResponse - (*CheckIPItemStatusRequest)(nil), // 12: pb.CheckIPItemStatusRequest - (*CheckIPItemStatusResponse)(nil), // 13: pb.CheckIPItemStatusResponse - (*ExistsEnabledIPItemRequest)(nil), // 14: pb.ExistsEnabledIPItemRequest - (*ExistsEnabledIPItemResponse)(nil), // 15: pb.ExistsEnabledIPItemResponse - (*CountAllEnabledIPItemsRequest)(nil), // 16: pb.CountAllEnabledIPItemsRequest - (*ListAllEnabledIPItemsRequest)(nil), // 17: pb.ListAllEnabledIPItemsRequest - (*ListAllEnabledIPItemsResponse)(nil), // 18: pb.ListAllEnabledIPItemsResponse - (*UpdateIPItemsReadRequest)(nil), // 19: pb.UpdateIPItemsReadRequest - (*ListAllEnabledIPItemsResponse_Result)(nil), // 20: pb.ListAllEnabledIPItemsResponse.Result - (*IPItem)(nil), // 21: pb.IPItem - (*IPList)(nil), // 22: pb.IPList - (*Server)(nil), // 23: pb.Server - (*HTTPFirewallPolicy)(nil), // 24: pb.HTTPFirewallPolicy - (*RPCSuccess)(nil), // 25: pb.RPCSuccess - (*RPCCountResponse)(nil), // 26: pb.RPCCountResponse + (*CreateIPItemsRequest)(nil), // 2: pb.CreateIPItemsRequest + (*CreateIPItemsResponse)(nil), // 3: pb.CreateIPItemsResponse + (*UpdateIPItemRequest)(nil), // 4: pb.UpdateIPItemRequest + (*DeleteIPItemRequest)(nil), // 5: pb.DeleteIPItemRequest + (*DeleteIPItemsRequest)(nil), // 6: pb.DeleteIPItemsRequest + (*CountIPItemsWithListIdRequest)(nil), // 7: pb.CountIPItemsWithListIdRequest + (*ListIPItemsWithListIdRequest)(nil), // 8: pb.ListIPItemsWithListIdRequest + (*ListIPItemsWithListIdResponse)(nil), // 9: pb.ListIPItemsWithListIdResponse + (*FindEnabledIPItemRequest)(nil), // 10: pb.FindEnabledIPItemRequest + (*FindEnabledIPItemResponse)(nil), // 11: pb.FindEnabledIPItemResponse + (*ListIPItemsAfterVersionRequest)(nil), // 12: pb.ListIPItemsAfterVersionRequest + (*ListIPItemsAfterVersionResponse)(nil), // 13: pb.ListIPItemsAfterVersionResponse + (*CheckIPItemStatusRequest)(nil), // 14: pb.CheckIPItemStatusRequest + (*CheckIPItemStatusResponse)(nil), // 15: pb.CheckIPItemStatusResponse + (*ExistsEnabledIPItemRequest)(nil), // 16: pb.ExistsEnabledIPItemRequest + (*ExistsEnabledIPItemResponse)(nil), // 17: pb.ExistsEnabledIPItemResponse + (*CountAllEnabledIPItemsRequest)(nil), // 18: pb.CountAllEnabledIPItemsRequest + (*ListAllEnabledIPItemsRequest)(nil), // 19: pb.ListAllEnabledIPItemsRequest + (*ListAllEnabledIPItemsResponse)(nil), // 20: pb.ListAllEnabledIPItemsResponse + (*UpdateIPItemsReadRequest)(nil), // 21: pb.UpdateIPItemsReadRequest + (*CreateIPItemsRequest_IPItem)(nil), // 22: pb.CreateIPItemsRequest.IPItem + (*ListAllEnabledIPItemsResponse_Result)(nil), // 23: pb.ListAllEnabledIPItemsResponse.Result + (*IPItem)(nil), // 24: pb.IPItem + (*IPList)(nil), // 25: pb.IPList + (*Server)(nil), // 26: pb.Server + (*HTTPFirewallPolicy)(nil), // 27: pb.HTTPFirewallPolicy + (*RPCSuccess)(nil), // 28: pb.RPCSuccess + (*RPCCountResponse)(nil), // 29: pb.RPCCountResponse } var file_service_ip_item_proto_depIdxs = []int32{ - 21, // 0: pb.ListIPItemsWithListIdResponse.ipItems:type_name -> pb.IPItem - 21, // 1: pb.FindEnabledIPItemResponse.ipItem:type_name -> pb.IPItem - 21, // 2: pb.ListIPItemsAfterVersionResponse.ipItems:type_name -> pb.IPItem - 21, // 3: pb.CheckIPItemStatusResponse.ipItem:type_name -> pb.IPItem - 20, // 4: pb.ListAllEnabledIPItemsResponse.results:type_name -> pb.ListAllEnabledIPItemsResponse.Result - 22, // 5: pb.ListAllEnabledIPItemsResponse.Result.ipList:type_name -> pb.IPList - 21, // 6: pb.ListAllEnabledIPItemsResponse.Result.ipItem:type_name -> pb.IPItem - 23, // 7: pb.ListAllEnabledIPItemsResponse.Result.server:type_name -> pb.Server - 24, // 8: pb.ListAllEnabledIPItemsResponse.Result.httpFirewallPolicy:type_name -> pb.HTTPFirewallPolicy - 0, // 9: pb.IPItemService.createIPItem:input_type -> pb.CreateIPItemRequest - 2, // 10: pb.IPItemService.updateIPItem:input_type -> pb.UpdateIPItemRequest - 3, // 11: pb.IPItemService.deleteIPItem:input_type -> pb.DeleteIPItemRequest - 4, // 12: pb.IPItemService.deleteIPItems:input_type -> pb.DeleteIPItemsRequest - 5, // 13: pb.IPItemService.countIPItemsWithListId:input_type -> pb.CountIPItemsWithListIdRequest - 6, // 14: pb.IPItemService.listIPItemsWithListId:input_type -> pb.ListIPItemsWithListIdRequest - 8, // 15: pb.IPItemService.findEnabledIPItem:input_type -> pb.FindEnabledIPItemRequest - 10, // 16: pb.IPItemService.listIPItemsAfterVersion:input_type -> pb.ListIPItemsAfterVersionRequest - 12, // 17: pb.IPItemService.checkIPItemStatus:input_type -> pb.CheckIPItemStatusRequest - 14, // 18: pb.IPItemService.existsEnabledIPItem:input_type -> pb.ExistsEnabledIPItemRequest - 16, // 19: pb.IPItemService.countAllEnabledIPItems:input_type -> pb.CountAllEnabledIPItemsRequest - 17, // 20: pb.IPItemService.listAllEnabledIPItems:input_type -> pb.ListAllEnabledIPItemsRequest - 19, // 21: pb.IPItemService.updateIPItemsRead:input_type -> pb.UpdateIPItemsReadRequest - 1, // 22: pb.IPItemService.createIPItem:output_type -> pb.CreateIPItemResponse - 25, // 23: pb.IPItemService.updateIPItem:output_type -> pb.RPCSuccess - 25, // 24: pb.IPItemService.deleteIPItem:output_type -> pb.RPCSuccess - 25, // 25: pb.IPItemService.deleteIPItems:output_type -> pb.RPCSuccess - 26, // 26: pb.IPItemService.countIPItemsWithListId:output_type -> pb.RPCCountResponse - 7, // 27: pb.IPItemService.listIPItemsWithListId:output_type -> pb.ListIPItemsWithListIdResponse - 9, // 28: pb.IPItemService.findEnabledIPItem:output_type -> pb.FindEnabledIPItemResponse - 11, // 29: pb.IPItemService.listIPItemsAfterVersion:output_type -> pb.ListIPItemsAfterVersionResponse - 13, // 30: pb.IPItemService.checkIPItemStatus:output_type -> pb.CheckIPItemStatusResponse - 15, // 31: pb.IPItemService.existsEnabledIPItem:output_type -> pb.ExistsEnabledIPItemResponse - 26, // 32: pb.IPItemService.countAllEnabledIPItems:output_type -> pb.RPCCountResponse - 18, // 33: pb.IPItemService.listAllEnabledIPItems:output_type -> pb.ListAllEnabledIPItemsResponse - 25, // 34: pb.IPItemService.updateIPItemsRead:output_type -> pb.RPCSuccess - 22, // [22:35] is the sub-list for method output_type - 9, // [9:22] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 22, // 0: pb.CreateIPItemsRequest.ipItems:type_name -> pb.CreateIPItemsRequest.IPItem + 24, // 1: pb.ListIPItemsWithListIdResponse.ipItems:type_name -> pb.IPItem + 24, // 2: pb.FindEnabledIPItemResponse.ipItem:type_name -> pb.IPItem + 24, // 3: pb.ListIPItemsAfterVersionResponse.ipItems:type_name -> pb.IPItem + 24, // 4: pb.CheckIPItemStatusResponse.ipItem:type_name -> pb.IPItem + 23, // 5: pb.ListAllEnabledIPItemsResponse.results:type_name -> pb.ListAllEnabledIPItemsResponse.Result + 25, // 6: pb.ListAllEnabledIPItemsResponse.Result.ipList:type_name -> pb.IPList + 24, // 7: pb.ListAllEnabledIPItemsResponse.Result.ipItem:type_name -> pb.IPItem + 26, // 8: pb.ListAllEnabledIPItemsResponse.Result.server:type_name -> pb.Server + 27, // 9: pb.ListAllEnabledIPItemsResponse.Result.httpFirewallPolicy:type_name -> pb.HTTPFirewallPolicy + 0, // 10: pb.IPItemService.createIPItem:input_type -> pb.CreateIPItemRequest + 2, // 11: pb.IPItemService.createIPItems:input_type -> pb.CreateIPItemsRequest + 4, // 12: pb.IPItemService.updateIPItem:input_type -> pb.UpdateIPItemRequest + 5, // 13: pb.IPItemService.deleteIPItem:input_type -> pb.DeleteIPItemRequest + 6, // 14: pb.IPItemService.deleteIPItems:input_type -> pb.DeleteIPItemsRequest + 7, // 15: pb.IPItemService.countIPItemsWithListId:input_type -> pb.CountIPItemsWithListIdRequest + 8, // 16: pb.IPItemService.listIPItemsWithListId:input_type -> pb.ListIPItemsWithListIdRequest + 10, // 17: pb.IPItemService.findEnabledIPItem:input_type -> pb.FindEnabledIPItemRequest + 12, // 18: pb.IPItemService.listIPItemsAfterVersion:input_type -> pb.ListIPItemsAfterVersionRequest + 14, // 19: pb.IPItemService.checkIPItemStatus:input_type -> pb.CheckIPItemStatusRequest + 16, // 20: pb.IPItemService.existsEnabledIPItem:input_type -> pb.ExistsEnabledIPItemRequest + 18, // 21: pb.IPItemService.countAllEnabledIPItems:input_type -> pb.CountAllEnabledIPItemsRequest + 19, // 22: pb.IPItemService.listAllEnabledIPItems:input_type -> pb.ListAllEnabledIPItemsRequest + 21, // 23: pb.IPItemService.updateIPItemsRead:input_type -> pb.UpdateIPItemsReadRequest + 1, // 24: pb.IPItemService.createIPItem:output_type -> pb.CreateIPItemResponse + 3, // 25: pb.IPItemService.createIPItems:output_type -> pb.CreateIPItemsResponse + 28, // 26: pb.IPItemService.updateIPItem:output_type -> pb.RPCSuccess + 28, // 27: pb.IPItemService.deleteIPItem:output_type -> pb.RPCSuccess + 28, // 28: pb.IPItemService.deleteIPItems:output_type -> pb.RPCSuccess + 29, // 29: pb.IPItemService.countIPItemsWithListId:output_type -> pb.RPCCountResponse + 9, // 30: pb.IPItemService.listIPItemsWithListId:output_type -> pb.ListIPItemsWithListIdResponse + 11, // 31: pb.IPItemService.findEnabledIPItem:output_type -> pb.FindEnabledIPItemResponse + 13, // 32: pb.IPItemService.listIPItemsAfterVersion:output_type -> pb.ListIPItemsAfterVersionResponse + 15, // 33: pb.IPItemService.checkIPItemStatus:output_type -> pb.CheckIPItemStatusResponse + 17, // 34: pb.IPItemService.existsEnabledIPItem:output_type -> pb.ExistsEnabledIPItemResponse + 29, // 35: pb.IPItemService.countAllEnabledIPItems:output_type -> pb.RPCCountResponse + 20, // 36: pb.IPItemService.listAllEnabledIPItems:output_type -> pb.ListAllEnabledIPItemsResponse + 28, // 37: pb.IPItemService.updateIPItemsRead:output_type -> pb.RPCSuccess + 24, // [24:38] is the sub-list for method output_type + 10, // [10:24] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name } func init() { file_service_ip_item_proto_init() } @@ -1821,7 +2119,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateIPItemRequest); i { + switch v := v.(*CreateIPItemsRequest); i { case 0: return &v.state case 1: @@ -1833,7 +2131,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteIPItemRequest); i { + switch v := v.(*CreateIPItemsResponse); i { case 0: return &v.state case 1: @@ -1845,7 +2143,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteIPItemsRequest); i { + switch v := v.(*UpdateIPItemRequest); i { case 0: return &v.state case 1: @@ -1857,7 +2155,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CountIPItemsWithListIdRequest); i { + switch v := v.(*DeleteIPItemRequest); i { case 0: return &v.state case 1: @@ -1869,7 +2167,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListIPItemsWithListIdRequest); i { + switch v := v.(*DeleteIPItemsRequest); i { case 0: return &v.state case 1: @@ -1881,7 +2179,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListIPItemsWithListIdResponse); i { + switch v := v.(*CountIPItemsWithListIdRequest); i { case 0: return &v.state case 1: @@ -1893,7 +2191,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledIPItemRequest); i { + switch v := v.(*ListIPItemsWithListIdRequest); i { case 0: return &v.state case 1: @@ -1905,7 +2203,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledIPItemResponse); i { + switch v := v.(*ListIPItemsWithListIdResponse); i { case 0: return &v.state case 1: @@ -1917,7 +2215,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListIPItemsAfterVersionRequest); i { + switch v := v.(*FindEnabledIPItemRequest); i { case 0: return &v.state case 1: @@ -1929,7 +2227,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListIPItemsAfterVersionResponse); i { + switch v := v.(*FindEnabledIPItemResponse); i { case 0: return &v.state case 1: @@ -1941,7 +2239,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckIPItemStatusRequest); i { + switch v := v.(*ListIPItemsAfterVersionRequest); i { case 0: return &v.state case 1: @@ -1953,7 +2251,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckIPItemStatusResponse); i { + switch v := v.(*ListIPItemsAfterVersionResponse); i { case 0: return &v.state case 1: @@ -1965,7 +2263,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExistsEnabledIPItemRequest); i { + switch v := v.(*CheckIPItemStatusRequest); i { case 0: return &v.state case 1: @@ -1977,7 +2275,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExistsEnabledIPItemResponse); i { + switch v := v.(*CheckIPItemStatusResponse); i { case 0: return &v.state case 1: @@ -1989,7 +2287,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CountAllEnabledIPItemsRequest); i { + switch v := v.(*ExistsEnabledIPItemRequest); i { case 0: return &v.state case 1: @@ -2001,7 +2299,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAllEnabledIPItemsRequest); i { + switch v := v.(*ExistsEnabledIPItemResponse); i { case 0: return &v.state case 1: @@ -2013,7 +2311,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAllEnabledIPItemsResponse); i { + switch v := v.(*CountAllEnabledIPItemsRequest); i { case 0: return &v.state case 1: @@ -2025,7 +2323,7 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateIPItemsReadRequest); i { + switch v := v.(*ListAllEnabledIPItemsRequest); i { case 0: return &v.state case 1: @@ -2037,6 +2335,42 @@ func file_service_ip_item_proto_init() { } } file_service_ip_item_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAllEnabledIPItemsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_item_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateIPItemsReadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_item_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateIPItemsRequest_IPItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_item_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListAllEnabledIPItemsResponse_Result); i { case 0: return &v.state @@ -2055,7 +2389,7 @@ func file_service_ip_item_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_service_ip_item_proto_rawDesc, NumEnums: 0, - NumMessages: 21, + NumMessages: 24, NumExtensions: 0, NumServices: 1, }, @@ -2083,6 +2417,8 @@ const _ = grpc.SupportPackageIsVersion6 type IPItemServiceClient interface { // 创建IP CreateIPItem(ctx context.Context, in *CreateIPItemRequest, opts ...grpc.CallOption) (*CreateIPItemResponse, error) + // 创建一组IP + CreateIPItems(ctx context.Context, in *CreateIPItemsRequest, opts ...grpc.CallOption) (*CreateIPItemsResponse, error) // 修改IP UpdateIPItem(ctx context.Context, in *UpdateIPItemRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 删除IP @@ -2126,6 +2462,15 @@ func (c *iPItemServiceClient) CreateIPItem(ctx context.Context, in *CreateIPItem return out, nil } +func (c *iPItemServiceClient) CreateIPItems(ctx context.Context, in *CreateIPItemsRequest, opts ...grpc.CallOption) (*CreateIPItemsResponse, error) { + out := new(CreateIPItemsResponse) + err := c.cc.Invoke(ctx, "/pb.IPItemService/createIPItems", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *iPItemServiceClient) UpdateIPItem(ctx context.Context, in *UpdateIPItemRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { out := new(RPCSuccess) err := c.cc.Invoke(ctx, "/pb.IPItemService/updateIPItem", in, out, opts...) @@ -2238,6 +2583,8 @@ func (c *iPItemServiceClient) UpdateIPItemsRead(ctx context.Context, in *UpdateI type IPItemServiceServer interface { // 创建IP CreateIPItem(context.Context, *CreateIPItemRequest) (*CreateIPItemResponse, error) + // 创建一组IP + CreateIPItems(context.Context, *CreateIPItemsRequest) (*CreateIPItemsResponse, error) // 修改IP UpdateIPItem(context.Context, *UpdateIPItemRequest) (*RPCSuccess, error) // 删除IP @@ -2271,6 +2618,9 @@ type UnimplementedIPItemServiceServer struct { func (*UnimplementedIPItemServiceServer) CreateIPItem(context.Context, *CreateIPItemRequest) (*CreateIPItemResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateIPItem not implemented") } +func (*UnimplementedIPItemServiceServer) CreateIPItems(context.Context, *CreateIPItemsRequest) (*CreateIPItemsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateIPItems not implemented") +} func (*UnimplementedIPItemServiceServer) UpdateIPItem(context.Context, *UpdateIPItemRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateIPItem not implemented") } @@ -2330,6 +2680,24 @@ func _IPItemService_CreateIPItem_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } +func _IPItemService_CreateIPItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateIPItemsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IPItemServiceServer).CreateIPItems(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.IPItemService/CreateIPItems", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IPItemServiceServer).CreateIPItems(ctx, req.(*CreateIPItemsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _IPItemService_UpdateIPItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateIPItemRequest) if err := dec(in); err != nil { @@ -2554,6 +2922,10 @@ var _IPItemService_serviceDesc = grpc.ServiceDesc{ MethodName: "createIPItem", Handler: _IPItemService_CreateIPItem_Handler, }, + { + MethodName: "createIPItems", + Handler: _IPItemService_CreateIPItems_Handler, + }, { MethodName: "updateIPItem", Handler: _IPItemService_UpdateIPItem_Handler, diff --git a/pkg/rpc/protos/service_ip_item.proto b/pkg/rpc/protos/service_ip_item.proto index e7a9d5e..7d9151f 100644 --- a/pkg/rpc/protos/service_ip_item.proto +++ b/pkg/rpc/protos/service_ip_item.proto @@ -14,6 +14,9 @@ service IPItemService { // 创建IP rpc createIPItem (CreateIPItemRequest) returns (CreateIPItemResponse); + // 创建一组IP + rpc createIPItems(CreateIPItemsRequest) returns (CreateIPItemsResponse); + // 修改IP rpc updateIPItem (UpdateIPItemRequest) returns (RPCSuccess); @@ -75,6 +78,34 @@ message CreateIPItemResponse { int64 ipItemId = 1; } +// 创建一组IP +message CreateIPItemsRequest { + repeated IPItem ipItems = 1; // 要创建的IP列表 + + message IPItem { + int64 ipListId = 1; // IP列表ID + string ipFrom = 2; // 开始IP + string ipTo = 3; // 结束IP(可选) + int64 expiredAt = 4; // 过期时间戳(可选) + string reason = 5; // 加入理由(可选) + string type = 6; // 类型 + string eventLevel = 7; // 级别 + + int64 nodeId = 8; // 所属节点ID + int64 serverId = 9; // 所属服务ID + + int64 sourceNodeId = 10; + int64 sourceServerId = 11; + int64 sourceHTTPFirewallPolicyId = 12; + int64 sourceHTTPFirewallRuleGroupId = 13; + int64 sourceHTTPFirewallRuleSetId = 14; + } +} + +message CreateIPItemsResponse { + repeated int64 ipItemIds = 1; // 创建后的IP ID列表 +} + // 修改IP message UpdateIPItemRequest { int64 ipItemId = 1;