mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 12:20:27 +08:00
IP库阶段性提交(未完成)
This commit is contained in:
6616
build/rpc.json
6616
build/rpc.json
File diff suppressed because it is too large
Load Diff
@@ -2,6 +2,36 @@
|
||||
|
||||
package iplibrary
|
||||
|
||||
type Country struct {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Codes []string `json:"codes"`
|
||||
}
|
||||
|
||||
type Province struct {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Codes []string `json:"codes"`
|
||||
}
|
||||
|
||||
type City struct {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Codes []string `json:"codes"`
|
||||
}
|
||||
|
||||
type Town struct {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Codes []string `json:"codes"`
|
||||
}
|
||||
|
||||
type Provider struct {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Codes []string `json:"codes"`
|
||||
}
|
||||
|
||||
type Meta struct {
|
||||
Version int `json:"version"` // IP库版本
|
||||
Author string `json:"author"`
|
||||
@@ -11,29 +41,54 @@ type Meta struct {
|
||||
Towns []*Town `json:"towns"`
|
||||
Providers []*Provider `json:"providers"`
|
||||
CreatedAt int64 `json:"createdAt"`
|
||||
|
||||
countryMap map[int64]*Country // id => *Country
|
||||
provinceMap map[int64]*Province // id => *Province
|
||||
cityMap map[int64]*City // id => *City
|
||||
townMap map[int64]*Town // id => *Town
|
||||
providerMap map[int64]*Provider // id => *Provider
|
||||
}
|
||||
|
||||
type Provider struct {
|
||||
Name string `json:"name"`
|
||||
Codes []string `json:"codes"`
|
||||
func (this *Meta) Init() {
|
||||
this.countryMap = map[int64]*Country{}
|
||||
this.provinceMap = map[int64]*Province{}
|
||||
this.cityMap = map[int64]*City{}
|
||||
this.townMap = map[int64]*Town{}
|
||||
this.providerMap = map[int64]*Provider{}
|
||||
|
||||
for _, country := range this.Countries {
|
||||
this.countryMap[country.Id] = country
|
||||
}
|
||||
for _, province := range this.Provinces {
|
||||
this.provinceMap[province.Id] = province
|
||||
}
|
||||
for _, city := range this.Cities {
|
||||
this.cityMap[city.Id] = city
|
||||
}
|
||||
for _, town := range this.Towns {
|
||||
this.townMap[town.Id] = town
|
||||
}
|
||||
for _, provider := range this.Providers {
|
||||
this.providerMap[provider.Id] = provider
|
||||
}
|
||||
}
|
||||
|
||||
type Country struct {
|
||||
Name string `json:"name"`
|
||||
Codes []string `json:"codes"`
|
||||
func (this *Meta) CountryWithId(countryId int64) *Country {
|
||||
return this.countryMap[countryId]
|
||||
}
|
||||
|
||||
type Province struct {
|
||||
Name string `json:"name"`
|
||||
Codes []string `json:"codes"`
|
||||
func (this *Meta) ProvinceWithId(provinceId int64) *Province {
|
||||
return this.provinceMap[provinceId]
|
||||
}
|
||||
|
||||
type City struct {
|
||||
Name string `json:"name"`
|
||||
Codes []string `json:"codes"`
|
||||
func (this *Meta) CityWithId(cityId int64) *City {
|
||||
return this.cityMap[cityId]
|
||||
}
|
||||
|
||||
type Town struct {
|
||||
Name string `json:"name"`
|
||||
Codes []string `json:"codes"`
|
||||
func (this *Meta) TownWithId(townId int64) *Town {
|
||||
return this.townMap[townId]
|
||||
}
|
||||
|
||||
func (this *Meta) ProviderWithId(providerId int64) *Provider {
|
||||
return this.providerMap[providerId]
|
||||
}
|
||||
|
||||
3
pkg/iplibrary/meta_test.go
Normal file
3
pkg/iplibrary/meta_test.go
Normal file
@@ -0,0 +1,3 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package iplibrary_test
|
||||
@@ -57,6 +57,7 @@ func (this *Reader) load(reader io.Reader) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
meta.Init()
|
||||
this.meta = meta
|
||||
|
||||
left, err := this.parse(dataBuf)
|
||||
@@ -132,6 +133,7 @@ func (this *Reader) Lookup(ip net.IP) *QueryResult {
|
||||
|
||||
return &QueryResult{
|
||||
item: resultItem,
|
||||
meta: this.meta,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,10 @@ func NewFileReader(path string) (*FileReader, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (this *FileReader) Meta() *Meta {
|
||||
return this.rawReader.meta
|
||||
}
|
||||
|
||||
func (this *FileReader) Lookup(ip net.IP) *QueryResult {
|
||||
return this.rawReader.Lookup(ip)
|
||||
}
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
package iplibrary_test
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/iplibrary"
|
||||
"github.com/iwind/TeaGo/maps"
|
||||
"net"
|
||||
"testing"
|
||||
)
|
||||
@@ -18,18 +20,29 @@ func TestNewFileReader(t *testing.T) {
|
||||
"127.0.0.1",
|
||||
"192.168.0.1",
|
||||
"192.168.0.150",
|
||||
"192.168.1.100",
|
||||
"192.168.2.100",
|
||||
"192.168.3.50",
|
||||
"192.168.0.150",
|
||||
"192.168.4.80",
|
||||
"8.8.8.8",
|
||||
"111.197.165.199",
|
||||
"175.178.206.125",
|
||||
} {
|
||||
var result = reader.Lookup(net.ParseIP(ip))
|
||||
if result.IsOk() {
|
||||
t.Log(ip+":", "countryId:", result.CountryId(), "provinceId:", result.ProvinceId(), "cityId:", result.CityId(), "provider:", result.ProviderId())
|
||||
var data = maps.Map{
|
||||
"countryId": result.CountryId(),
|
||||
"countryName": result.CountryName(),
|
||||
"provinceId": result.ProvinceId(),
|
||||
"provinceName": result.ProvinceName(),
|
||||
"cityId": result.CityId(),
|
||||
"cityName": result.CityName(),
|
||||
"townId": result.TownId(),
|
||||
"townName": result.TownName(),
|
||||
"providerId": result.ProviderId(),
|
||||
"providerName": result.ProviderName(),
|
||||
}
|
||||
dataJSON, err := json.MarshalIndent(data, "", " ")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(ip, "=>", string(dataJSON))
|
||||
} else {
|
||||
t.Log(ip+":", "not found")
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ package iplibrary
|
||||
|
||||
type QueryResult struct {
|
||||
item *ipItem
|
||||
meta *Meta
|
||||
}
|
||||
|
||||
func (this *QueryResult) IsOk() bool {
|
||||
@@ -17,6 +18,16 @@ func (this *QueryResult) CountryId() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (this *QueryResult) CountryName() string {
|
||||
if this.item.countryId > 0 {
|
||||
var country = this.meta.CountryWithId(this.item.countryId)
|
||||
if country != nil {
|
||||
return country.Name
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (this *QueryResult) ProvinceId() int64 {
|
||||
if this.item != nil {
|
||||
return this.item.provinceId
|
||||
@@ -24,6 +35,16 @@ func (this *QueryResult) ProvinceId() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (this *QueryResult) ProvinceName() string {
|
||||
if this.item.provinceId > 0 {
|
||||
var province = this.meta.ProvinceWithId(this.item.provinceId)
|
||||
if province != nil {
|
||||
return province.Name
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (this *QueryResult) CityId() int64 {
|
||||
if this.item != nil {
|
||||
return this.item.cityId
|
||||
@@ -31,6 +52,16 @@ func (this *QueryResult) CityId() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (this *QueryResult) CityName() string {
|
||||
if this.item.cityId > 0 {
|
||||
var city = this.meta.CityWithId(this.item.cityId)
|
||||
if city != nil {
|
||||
return city.Name
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (this *QueryResult) TownId() int64 {
|
||||
if this.item != nil {
|
||||
return this.item.townId
|
||||
@@ -38,9 +69,29 @@ func (this *QueryResult) TownId() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (this *QueryResult) TownName() string {
|
||||
if this.item.townId > 0 {
|
||||
var town = this.meta.TownWithId(this.item.townId)
|
||||
if town != nil {
|
||||
return town.Name
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (this *QueryResult) ProviderId() int64 {
|
||||
if this.item != nil {
|
||||
return this.item.providerId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (this *QueryResult) ProviderName() string {
|
||||
if this.item.providerId > 0 {
|
||||
var provider = this.meta.ProviderWithId(this.item.providerId)
|
||||
if provider != nil {
|
||||
return provider.Name
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
222
pkg/rpc/pb/model_region_town.pb.go
Normal file
222
pkg/rpc/pb/model_region_town.pb.go
Normal file
@@ -0,0 +1,222 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.19.4
|
||||
// source: models/model_region_town.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
type RegionTown struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"`
|
||||
RegionCityId int64 `protobuf:"varint,4,opt,name=regionCityId,proto3" json:"regionCityId,omitempty"`
|
||||
CustomName string `protobuf:"bytes,5,opt,name=customName,proto3" json:"customName,omitempty"`
|
||||
CustomCodes []string `protobuf:"bytes,6,rep,name=customCodes,proto3" json:"customCodes,omitempty"`
|
||||
DisplayName string `protobuf:"bytes,7,opt,name=displayName,proto3" json:"displayName,omitempty"`
|
||||
RegionCity *RegionCity `protobuf:"bytes,30,opt,name=regionCity,proto3" json:"regionCity,omitempty"`
|
||||
}
|
||||
|
||||
func (x *RegionTown) Reset() {
|
||||
*x = RegionTown{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_models_model_region_town_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *RegionTown) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RegionTown) ProtoMessage() {}
|
||||
|
||||
func (x *RegionTown) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_models_model_region_town_proto_msgTypes[0]
|
||||
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 RegionTown.ProtoReflect.Descriptor instead.
|
||||
func (*RegionTown) Descriptor() ([]byte, []int) {
|
||||
return file_models_model_region_town_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *RegionTown) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *RegionTown) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *RegionTown) GetCodes() []string {
|
||||
if x != nil {
|
||||
return x.Codes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RegionTown) GetRegionCityId() int64 {
|
||||
if x != nil {
|
||||
return x.RegionCityId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *RegionTown) GetCustomName() string {
|
||||
if x != nil {
|
||||
return x.CustomName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *RegionTown) GetCustomCodes() []string {
|
||||
if x != nil {
|
||||
return x.CustomCodes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RegionTown) GetDisplayName() string {
|
||||
if x != nil {
|
||||
return x.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *RegionTown) GetRegionCity() *RegionCity {
|
||||
if x != nil {
|
||||
return x.RegionCity
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_models_model_region_town_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_models_model_region_town_proto_rawDesc = []byte{
|
||||
0x0a, 0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72,
|
||||
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x77, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x12, 0x02, 0x70, 0x62, 0x1a, 0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64,
|
||||
0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x69, 0x74, 0x79, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfe, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54,
|
||||
0x6f, 0x77, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73,
|
||||
0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x22, 0x0a,
|
||||
0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x04, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49,
|
||||
0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18,
|
||||
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d,
|
||||
0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73,
|
||||
0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f,
|
||||
0x64, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61,
|
||||
0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,
|
||||
0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43,
|
||||
0x69, 0x74, 0x79, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52,
|
||||
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f,
|
||||
0x6e, 0x43, 0x69, 0x74, 0x79, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_models_model_region_town_proto_rawDescOnce sync.Once
|
||||
file_models_model_region_town_proto_rawDescData = file_models_model_region_town_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_models_model_region_town_proto_rawDescGZIP() []byte {
|
||||
file_models_model_region_town_proto_rawDescOnce.Do(func() {
|
||||
file_models_model_region_town_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_region_town_proto_rawDescData)
|
||||
})
|
||||
return file_models_model_region_town_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_models_model_region_town_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_models_model_region_town_proto_goTypes = []interface{}{
|
||||
(*RegionTown)(nil), // 0: pb.RegionTown
|
||||
(*RegionCity)(nil), // 1: pb.RegionCity
|
||||
}
|
||||
var file_models_model_region_town_proto_depIdxs = []int32{
|
||||
1, // 0: pb.RegionTown.regionCity:type_name -> pb.RegionCity
|
||||
1, // [1:1] is the sub-list for method output_type
|
||||
1, // [1:1] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_models_model_region_town_proto_init() }
|
||||
func file_models_model_region_town_proto_init() {
|
||||
if File_models_model_region_town_proto != nil {
|
||||
return
|
||||
}
|
||||
file_models_model_region_city_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_models_model_region_town_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RegionTown); 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{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_models_model_region_town_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_models_model_region_town_proto_goTypes,
|
||||
DependencyIndexes: file_models_model_region_town_proto_depIdxs,
|
||||
MessageInfos: file_models_model_region_town_proto_msgTypes,
|
||||
}.Build()
|
||||
File_models_model_region_town_proto = out.File
|
||||
file_models_model_region_town_proto_rawDesc = nil
|
||||
file_models_model_region_town_proto_goTypes = nil
|
||||
file_models_model_region_town_proto_depIdxs = nil
|
||||
}
|
||||
@@ -842,48 +842,50 @@ var file_service_ip_library_proto_rawDesc = []byte{
|
||||
0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70,
|
||||
0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d,
|
||||
0x6d, 0x61, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d,
|
||||
0x61, 0x72, 0x79, 0x32, 0x80, 0x05, 0x0a, 0x10, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
||||
0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61,
|
||||
0x61, 0x72, 0x79, 0x32, 0xa3, 0x05, 0x0a, 0x10, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
||||
0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61,
|
||||
0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x62,
|
||||
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65,
|
||||
0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x1b, 0x66, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65,
|
||||
0x73, 0x74, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68, 0x54,
|
||||
0x79, 0x70, 0x65, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74,
|
||||
0x65, 0x73, 0x74, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68,
|
||||
0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x62,
|
||||
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x50, 0x4c, 0x69, 0x62,
|
||||
0x72, 0x61, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x14, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x1f, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c,
|
||||
0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50,
|
||||
0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||
0x80, 0x01, 0x0a, 0x21, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74,
|
||||
0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41,
|
||||
0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61,
|
||||
0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
|
||||
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69,
|
||||
0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69,
|
||||
0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
|
||||
0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
|
||||
0x73, 0x12, 0x47, 0x0a, 0x0e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67,
|
||||
0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49,
|
||||
0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69,
|
||||
0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x6c, 0x6f,
|
||||
0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f,
|
||||
0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x4c,
|
||||
0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x73, 0x0a, 0x1b, 0x66, 0x69, 0x6e,
|
||||
0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
|
||||
0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
|
||||
0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
||||
0x79, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x1a, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74,
|
||||
0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70,
|
||||
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x5e,
|
||||
0x0a, 0x14, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c,
|
||||
0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
|
||||
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
|
||||
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
||||
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x85,
|
||||
0x01, 0x0a, 0x21, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68,
|
||||
0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
|
||||
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
||||
0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45,
|
||||
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65,
|
||||
0x73, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x42, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65,
|
||||
0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x44,
|
||||
0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75,
|
||||
0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x4c, 0x0a, 0x0e, 0x6c, 0x6f,
|
||||
0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f,
|
||||
0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x4f, 0x0a, 0x0f, 0x6c, 0x6f, 0x6f, 0x6b,
|
||||
0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62,
|
||||
0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f,
|
||||
0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70,
|
||||
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -1155,18 +1157,25 @@ const _ = grpc.SupportPackageIsVersion6
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type IPLibraryServiceClient interface {
|
||||
// Deprecated: Do not use.
|
||||
// 创建IP库
|
||||
CreateIPLibrary(ctx context.Context, in *CreateIPLibraryRequest, opts ...grpc.CallOption) (*CreateIPLibraryResponse, error)
|
||||
// Deprecated: Do not use.
|
||||
// 查找最新的IP库
|
||||
FindLatestIPLibraryWithType(ctx context.Context, in *FindLatestIPLibraryWithTypeRequest, opts ...grpc.CallOption) (*FindLatestIPLibraryWithTypeResponse, error)
|
||||
// Deprecated: Do not use.
|
||||
// 查找单个IP库
|
||||
FindEnabledIPLibrary(ctx context.Context, in *FindEnabledIPLibraryRequest, opts ...grpc.CallOption) (*FindEnabledIPLibraryResponse, error)
|
||||
// Deprecated: Do not use.
|
||||
// 列出某个类型的所有IP库
|
||||
FindAllEnabledIPLibrariesWithType(ctx context.Context, in *FindAllEnabledIPLibrariesWithTypeRequest, opts ...grpc.CallOption) (*FindAllEnabledIPLibrariesWithTypeResponse, error)
|
||||
// Deprecated: Do not use.
|
||||
// 删除IP库
|
||||
DeleteIPLibrary(ctx context.Context, in *DeleteIPLibraryRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// Deprecated: Do not use.
|
||||
// 查询某个IP信息
|
||||
LookupIPRegion(ctx context.Context, in *LookupIPRegionRequest, opts ...grpc.CallOption) (*LookupIPRegionResponse, error)
|
||||
// Deprecated: Do not use.
|
||||
// 查询一组IP信息
|
||||
LookupIPRegions(ctx context.Context, in *LookupIPRegionsRequest, opts ...grpc.CallOption) (*LookupIPRegionsResponse, error)
|
||||
}
|
||||
@@ -1179,6 +1188,7 @@ func NewIPLibraryServiceClient(cc grpc.ClientConnInterface) IPLibraryServiceClie
|
||||
return &iPLibraryServiceClient{cc}
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (c *iPLibraryServiceClient) CreateIPLibrary(ctx context.Context, in *CreateIPLibraryRequest, opts ...grpc.CallOption) (*CreateIPLibraryResponse, error) {
|
||||
out := new(CreateIPLibraryResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/createIPLibrary", in, out, opts...)
|
||||
@@ -1188,6 +1198,7 @@ func (c *iPLibraryServiceClient) CreateIPLibrary(ctx context.Context, in *Create
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (c *iPLibraryServiceClient) FindLatestIPLibraryWithType(ctx context.Context, in *FindLatestIPLibraryWithTypeRequest, opts ...grpc.CallOption) (*FindLatestIPLibraryWithTypeResponse, error) {
|
||||
out := new(FindLatestIPLibraryWithTypeResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/findLatestIPLibraryWithType", in, out, opts...)
|
||||
@@ -1197,6 +1208,7 @@ func (c *iPLibraryServiceClient) FindLatestIPLibraryWithType(ctx context.Context
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (c *iPLibraryServiceClient) FindEnabledIPLibrary(ctx context.Context, in *FindEnabledIPLibraryRequest, opts ...grpc.CallOption) (*FindEnabledIPLibraryResponse, error) {
|
||||
out := new(FindEnabledIPLibraryResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/findEnabledIPLibrary", in, out, opts...)
|
||||
@@ -1206,6 +1218,7 @@ func (c *iPLibraryServiceClient) FindEnabledIPLibrary(ctx context.Context, in *F
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (c *iPLibraryServiceClient) FindAllEnabledIPLibrariesWithType(ctx context.Context, in *FindAllEnabledIPLibrariesWithTypeRequest, opts ...grpc.CallOption) (*FindAllEnabledIPLibrariesWithTypeResponse, error) {
|
||||
out := new(FindAllEnabledIPLibrariesWithTypeResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/findAllEnabledIPLibrariesWithType", in, out, opts...)
|
||||
@@ -1215,6 +1228,7 @@ func (c *iPLibraryServiceClient) FindAllEnabledIPLibrariesWithType(ctx context.C
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (c *iPLibraryServiceClient) DeleteIPLibrary(ctx context.Context, in *DeleteIPLibraryRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/deleteIPLibrary", in, out, opts...)
|
||||
@@ -1224,6 +1238,7 @@ func (c *iPLibraryServiceClient) DeleteIPLibrary(ctx context.Context, in *Delete
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (c *iPLibraryServiceClient) LookupIPRegion(ctx context.Context, in *LookupIPRegionRequest, opts ...grpc.CallOption) (*LookupIPRegionResponse, error) {
|
||||
out := new(LookupIPRegionResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/lookupIPRegion", in, out, opts...)
|
||||
@@ -1233,6 +1248,7 @@ func (c *iPLibraryServiceClient) LookupIPRegion(ctx context.Context, in *LookupI
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (c *iPLibraryServiceClient) LookupIPRegions(ctx context.Context, in *LookupIPRegionsRequest, opts ...grpc.CallOption) (*LookupIPRegionsResponse, error) {
|
||||
out := new(LookupIPRegionsResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/lookupIPRegions", in, out, opts...)
|
||||
@@ -1244,18 +1260,25 @@ func (c *iPLibraryServiceClient) LookupIPRegions(ctx context.Context, in *Lookup
|
||||
|
||||
// IPLibraryServiceServer is the server API for IPLibraryService service.
|
||||
type IPLibraryServiceServer interface {
|
||||
// Deprecated: Do not use.
|
||||
// 创建IP库
|
||||
CreateIPLibrary(context.Context, *CreateIPLibraryRequest) (*CreateIPLibraryResponse, error)
|
||||
// Deprecated: Do not use.
|
||||
// 查找最新的IP库
|
||||
FindLatestIPLibraryWithType(context.Context, *FindLatestIPLibraryWithTypeRequest) (*FindLatestIPLibraryWithTypeResponse, error)
|
||||
// Deprecated: Do not use.
|
||||
// 查找单个IP库
|
||||
FindEnabledIPLibrary(context.Context, *FindEnabledIPLibraryRequest) (*FindEnabledIPLibraryResponse, error)
|
||||
// Deprecated: Do not use.
|
||||
// 列出某个类型的所有IP库
|
||||
FindAllEnabledIPLibrariesWithType(context.Context, *FindAllEnabledIPLibrariesWithTypeRequest) (*FindAllEnabledIPLibrariesWithTypeResponse, error)
|
||||
// Deprecated: Do not use.
|
||||
// 删除IP库
|
||||
DeleteIPLibrary(context.Context, *DeleteIPLibraryRequest) (*RPCSuccess, error)
|
||||
// Deprecated: Do not use.
|
||||
// 查询某个IP信息
|
||||
LookupIPRegion(context.Context, *LookupIPRegionRequest) (*LookupIPRegionResponse, error)
|
||||
// Deprecated: Do not use.
|
||||
// 查询一组IP信息
|
||||
LookupIPRegions(context.Context, *LookupIPRegionsRequest) (*LookupIPRegionsResponse, error)
|
||||
}
|
||||
|
||||
@@ -646,6 +646,101 @@ func (x *CheckCitiesWithIPLibraryFileIdResponse) GetMissingCities() []*CheckCiti
|
||||
return nil
|
||||
}
|
||||
|
||||
// 检查区县
|
||||
type CheckTownsWithIPLibraryFileIdRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
IpLibraryFileId int64 `protobuf:"varint,1,opt,name=ipLibraryFileId,proto3" json:"ipLibraryFileId,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdRequest) Reset() {
|
||||
*x = CheckTownsWithIPLibraryFileIdRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CheckTownsWithIPLibraryFileIdRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[12]
|
||||
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 CheckTownsWithIPLibraryFileIdRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CheckTownsWithIPLibraryFileIdRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_ip_library_file_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdRequest) GetIpLibraryFileId() int64 {
|
||||
if x != nil {
|
||||
return x.IpLibraryFileId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type CheckTownsWithIPLibraryFileIdResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
MissingTowns []*CheckTownsWithIPLibraryFileIdResponse_MissingTown `protobuf:"bytes,1,rep,name=missingTowns,proto3" json:"missingTowns,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdResponse) Reset() {
|
||||
*x = CheckTownsWithIPLibraryFileIdResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CheckTownsWithIPLibraryFileIdResponse) ProtoMessage() {}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[13]
|
||||
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 CheckTownsWithIPLibraryFileIdResponse.ProtoReflect.Descriptor instead.
|
||||
func (*CheckTownsWithIPLibraryFileIdResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_ip_library_file_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdResponse) GetMissingTowns() []*CheckTownsWithIPLibraryFileIdResponse_MissingTown {
|
||||
if x != nil {
|
||||
return x.MissingTowns
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 检查ISP运营商
|
||||
type CheckProvidersWithIPLibraryFileIdRequest struct {
|
||||
state protoimpl.MessageState
|
||||
@@ -658,7 +753,7 @@ type CheckProvidersWithIPLibraryFileIdRequest struct {
|
||||
func (x *CheckProvidersWithIPLibraryFileIdRequest) Reset() {
|
||||
*x = CheckProvidersWithIPLibraryFileIdRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[12]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -671,7 +766,7 @@ func (x *CheckProvidersWithIPLibraryFileIdRequest) String() string {
|
||||
func (*CheckProvidersWithIPLibraryFileIdRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CheckProvidersWithIPLibraryFileIdRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[12]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[14]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -684,7 +779,7 @@ func (x *CheckProvidersWithIPLibraryFileIdRequest) ProtoReflect() protoreflect.M
|
||||
|
||||
// Deprecated: Use CheckProvidersWithIPLibraryFileIdRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CheckProvidersWithIPLibraryFileIdRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_ip_library_file_proto_rawDescGZIP(), []int{12}
|
||||
return file_service_ip_library_file_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *CheckProvidersWithIPLibraryFileIdRequest) GetIpLibraryFileId() int64 {
|
||||
@@ -705,7 +800,7 @@ type CheckProvidersWithIPLibraryFileIdResponse struct {
|
||||
func (x *CheckProvidersWithIPLibraryFileIdResponse) Reset() {
|
||||
*x = CheckProvidersWithIPLibraryFileIdResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[13]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[15]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -718,7 +813,7 @@ func (x *CheckProvidersWithIPLibraryFileIdResponse) String() string {
|
||||
func (*CheckProvidersWithIPLibraryFileIdResponse) ProtoMessage() {}
|
||||
|
||||
func (x *CheckProvidersWithIPLibraryFileIdResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[13]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[15]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -731,7 +826,7 @@ func (x *CheckProvidersWithIPLibraryFileIdResponse) ProtoReflect() protoreflect.
|
||||
|
||||
// Deprecated: Use CheckProvidersWithIPLibraryFileIdResponse.ProtoReflect.Descriptor instead.
|
||||
func (*CheckProvidersWithIPLibraryFileIdResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_ip_library_file_proto_rawDescGZIP(), []int{13}
|
||||
return file_service_ip_library_file_proto_rawDescGZIP(), []int{15}
|
||||
}
|
||||
|
||||
func (x *CheckProvidersWithIPLibraryFileIdResponse) GetMissingProviders() []*CheckProvidersWithIPLibraryFileIdResponse_MissingProvider {
|
||||
@@ -753,7 +848,7 @@ type GenerateIPLibraryFileRequest struct {
|
||||
func (x *GenerateIPLibraryFileRequest) Reset() {
|
||||
*x = GenerateIPLibraryFileRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[14]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[16]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -766,7 +861,7 @@ func (x *GenerateIPLibraryFileRequest) String() string {
|
||||
func (*GenerateIPLibraryFileRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GenerateIPLibraryFileRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[14]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[16]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -779,7 +874,7 @@ func (x *GenerateIPLibraryFileRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GenerateIPLibraryFileRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GenerateIPLibraryFileRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_ip_library_file_proto_rawDescGZIP(), []int{14}
|
||||
return file_service_ip_library_file_proto_rawDescGZIP(), []int{16}
|
||||
}
|
||||
|
||||
func (x *GenerateIPLibraryFileRequest) GetIpLibraryFileId() int64 {
|
||||
@@ -801,7 +896,7 @@ type CheckCountriesWithIPLibraryFileIdResponse_MissingCountry struct {
|
||||
func (x *CheckCountriesWithIPLibraryFileIdResponse_MissingCountry) Reset() {
|
||||
*x = CheckCountriesWithIPLibraryFileIdResponse_MissingCountry{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[15]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[17]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -814,7 +909,7 @@ func (x *CheckCountriesWithIPLibraryFileIdResponse_MissingCountry) String() stri
|
||||
func (*CheckCountriesWithIPLibraryFileIdResponse_MissingCountry) ProtoMessage() {}
|
||||
|
||||
func (x *CheckCountriesWithIPLibraryFileIdResponse_MissingCountry) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[15]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[17]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -857,7 +952,7 @@ type CheckProvincesWithIPLibraryFileIdResponse_MissingProvince struct {
|
||||
func (x *CheckProvincesWithIPLibraryFileIdResponse_MissingProvince) Reset() {
|
||||
*x = CheckProvincesWithIPLibraryFileIdResponse_MissingProvince{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[16]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[18]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -870,7 +965,7 @@ func (x *CheckProvincesWithIPLibraryFileIdResponse_MissingProvince) String() str
|
||||
func (*CheckProvincesWithIPLibraryFileIdResponse_MissingProvince) ProtoMessage() {}
|
||||
|
||||
func (x *CheckProvincesWithIPLibraryFileIdResponse_MissingProvince) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[16]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[18]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -921,7 +1016,7 @@ type CheckCitiesWithIPLibraryFileIdResponse_MissingCity struct {
|
||||
func (x *CheckCitiesWithIPLibraryFileIdResponse_MissingCity) Reset() {
|
||||
*x = CheckCitiesWithIPLibraryFileIdResponse_MissingCity{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[17]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[19]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -934,7 +1029,7 @@ func (x *CheckCitiesWithIPLibraryFileIdResponse_MissingCity) String() string {
|
||||
func (*CheckCitiesWithIPLibraryFileIdResponse_MissingCity) ProtoMessage() {}
|
||||
|
||||
func (x *CheckCitiesWithIPLibraryFileIdResponse_MissingCity) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[17]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[19]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -978,6 +1073,85 @@ func (x *CheckCitiesWithIPLibraryFileIdResponse_MissingCity) GetSimilarCities()
|
||||
return nil
|
||||
}
|
||||
|
||||
type CheckTownsWithIPLibraryFileIdResponse_MissingTown struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
CountryName string `protobuf:"bytes,1,opt,name=countryName,proto3" json:"countryName,omitempty"`
|
||||
ProvinceName string `protobuf:"bytes,2,opt,name=provinceName,proto3" json:"provinceName,omitempty"`
|
||||
CityName string `protobuf:"bytes,3,opt,name=cityName,proto3" json:"cityName,omitempty"`
|
||||
TownName string `protobuf:"bytes,4,opt,name=townName,proto3" json:"townName,omitempty"`
|
||||
SimilarTowns []*RegionTown `protobuf:"bytes,5,rep,name=similarTowns,proto3" json:"similarTowns,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdResponse_MissingTown) Reset() {
|
||||
*x = CheckTownsWithIPLibraryFileIdResponse_MissingTown{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[20]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdResponse_MissingTown) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CheckTownsWithIPLibraryFileIdResponse_MissingTown) ProtoMessage() {}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdResponse_MissingTown) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[20]
|
||||
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 CheckTownsWithIPLibraryFileIdResponse_MissingTown.ProtoReflect.Descriptor instead.
|
||||
func (*CheckTownsWithIPLibraryFileIdResponse_MissingTown) Descriptor() ([]byte, []int) {
|
||||
return file_service_ip_library_file_proto_rawDescGZIP(), []int{13, 0}
|
||||
}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdResponse_MissingTown) GetCountryName() string {
|
||||
if x != nil {
|
||||
return x.CountryName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdResponse_MissingTown) GetProvinceName() string {
|
||||
if x != nil {
|
||||
return x.ProvinceName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdResponse_MissingTown) GetCityName() string {
|
||||
if x != nil {
|
||||
return x.CityName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdResponse_MissingTown) GetTownName() string {
|
||||
if x != nil {
|
||||
return x.TownName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CheckTownsWithIPLibraryFileIdResponse_MissingTown) GetSimilarTowns() []*RegionTown {
|
||||
if x != nil {
|
||||
return x.SimilarTowns
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type CheckProvidersWithIPLibraryFileIdResponse_MissingProvider struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -990,7 +1164,7 @@ type CheckProvidersWithIPLibraryFileIdResponse_MissingProvider struct {
|
||||
func (x *CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) Reset() {
|
||||
*x = CheckProvidersWithIPLibraryFileIdResponse_MissingProvider{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[18]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[21]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1003,7 +1177,7 @@ func (x *CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) String() str
|
||||
func (*CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) ProtoMessage() {}
|
||||
|
||||
func (x *CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[18]
|
||||
mi := &file_service_ip_library_file_proto_msgTypes[21]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1016,7 +1190,7 @@ func (x *CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) ProtoReflect
|
||||
|
||||
// Deprecated: Use CheckProvidersWithIPLibraryFileIdResponse_MissingProvider.ProtoReflect.Descriptor instead.
|
||||
func (*CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) Descriptor() ([]byte, []int) {
|
||||
return file_service_ip_library_file_proto_rawDescGZIP(), []int{13, 0}
|
||||
return file_service_ip_library_file_proto_rawDescGZIP(), []int{15, 0}
|
||||
}
|
||||
|
||||
func (x *CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) GetProviderName() string {
|
||||
@@ -1048,7 +1222,9 @@ var file_service_ip_library_file_proto_rawDesc = []byte{
|
||||
0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69,
|
||||
0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
|
||||
0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63,
|
||||
0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
|
||||
0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
|
||||
0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x74,
|
||||
0x6f, 0x77, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
|
||||
0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70,
|
||||
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x28, 0x0a,
|
||||
0x26, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68,
|
||||
@@ -1163,92 +1339,124 @@ var file_service_ip_library_file_proto_rawDesc = []byte{
|
||||
0x34, 0x0a, 0x0d, 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73,
|
||||
0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69,
|
||||
0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x43,
|
||||
0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x54, 0x0a, 0x28, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72,
|
||||
0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62,
|
||||
0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x12, 0x28, 0x0a, 0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69,
|
||||
0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x69, 0x70, 0x4c, 0x69,
|
||||
0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x8d, 0x02, 0x0a, 0x29,
|
||||
0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69,
|
||||
0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49,
|
||||
0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x10, 0x6d, 0x69, 0x73,
|
||||
0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20,
|
||||
0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72,
|
||||
0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x50, 0x0a, 0x24, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x6f,
|
||||
0x77, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
|
||||
0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a,
|
||||
0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
||||
0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xc4, 0x02, 0x0a, 0x25, 0x43, 0x68, 0x65, 0x63,
|
||||
0x6b, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72,
|
||||
0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x12, 0x59, 0x0a, 0x0c, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x6f, 0x77, 0x6e,
|
||||
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65,
|
||||
0x63, 0x6b, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62,
|
||||
0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x2e, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x0c,
|
||||
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x1a, 0xbf, 0x01, 0x0a,
|
||||
0x0b, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x6f, 0x77, 0x6e, 0x12, 0x20, 0x0a, 0x0b,
|
||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22,
|
||||
0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61,
|
||||
0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a,
|
||||
0x0a, 0x08, 0x74, 0x6f, 0x77, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x08, 0x74, 0x6f, 0x77, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x0c, 0x73, 0x69,
|
||||
0x6d, 0x69, 0x6c, 0x61, 0x72, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e,
|
||||
0x52, 0x0c, 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x22, 0x54,
|
||||
0x0a, 0x28, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73,
|
||||
0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c,
|
||||
0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x69, 0x70,
|
||||
0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69,
|
||||
0x6c, 0x65, 0x49, 0x64, 0x22, 0x8d, 0x02, 0x0a, 0x29, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72,
|
||||
0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62,
|
||||
0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x2e, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
|
||||
0x65, 0x72, 0x52, 0x10, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x76, 0x69,
|
||||
0x64, 0x65, 0x72, 0x73, 0x1a, 0x75, 0x0a, 0x0f, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x50,
|
||||
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69,
|
||||
0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70,
|
||||
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x10, 0x73,
|
||||
0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18,
|
||||
0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f,
|
||||
0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x10, 0x73, 0x69, 0x6d, 0x69, 0x6c,
|
||||
0x61, 0x72, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x22, 0x48, 0x0a, 0x1c, 0x47,
|
||||
0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
|
||||
0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x69,
|
||||
0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46,
|
||||
0x69, 0x6c, 0x65, 0x49, 0x64, 0x32, 0x89, 0x07, 0x0a, 0x14, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72,
|
||||
0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7a,
|
||||
0x0a, 0x1f, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x73,
|
||||
0x68, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65,
|
||||
0x73, 0x12, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x6e,
|
||||
0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
||||
0x79, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x6e, 0x66, 0x69, 0x6e, 0x69,
|
||||
0x73, 0x68, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c,
|
||||
0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x66, 0x69,
|
||||
0x6e, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12,
|
||||
0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61,
|
||||
0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
|
||||
0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x13,
|
||||
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46,
|
||||
0x69, 0x6c, 0x65, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49,
|
||||
0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49,
|
||||
0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f,
|
||||
0x73, 0x65, 0x12, 0x69, 0x0a, 0x10, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f,
|
||||
0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73,
|
||||
0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c,
|
||||
0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x69, 0x73, 0x73,
|
||||
0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x10, 0x6d, 0x69, 0x73,
|
||||
0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x1a, 0x75, 0x0a,
|
||||
0x0f, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
|
||||
0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
|
||||
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x10, 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x50,
|
||||
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
|
||||
0x65, 0x72, 0x52, 0x10, 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x50, 0x72, 0x6f, 0x76, 0x69,
|
||||
0x64, 0x65, 0x72, 0x73, 0x22, 0x48, 0x0a, 0x1c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65,
|
||||
0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
||||
0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x69,
|
||||
0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x32, 0xff,
|
||||
0x07, 0x0a, 0x14, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65,
|
||||
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7a, 0x0a, 0x1f, 0x66, 0x69, 0x6e, 0x64, 0x41,
|
||||
0x6c, 0x6c, 0x55, 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69,
|
||||
0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x2a, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65,
|
||||
0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
|
||||
0x41, 0x6c, 0x6c, 0x55, 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x49, 0x50, 0x4c,
|
||||
0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62,
|
||||
0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
|
||||
0x6e, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
|
||||
0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49,
|
||||
0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1e, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
||||
0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
||||
0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01,
|
||||
0x0a, 0x21, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73,
|
||||
0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c,
|
||||
0x65, 0x49, 0x64, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62,
|
||||
0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69,
|
||||
0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49,
|
||||
0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68,
|
||||
0x65, 0x63, 0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68,
|
||||
0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x63, 0x68, 0x65, 0x63,
|
||||
0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x75, 0x6e,
|
||||
0x74, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61,
|
||||
0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x12, 0x80, 0x01, 0x0a, 0x21, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e,
|
||||
0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
|
||||
0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63,
|
||||
0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50,
|
||||
0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65,
|
||||
0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69,
|
||||
0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62,
|
||||
0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57,
|
||||
0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65,
|
||||
0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x1e, 0x63, 0x68,
|
||||
0x65, 0x63, 0x6b, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c,
|
||||
0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x29, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74,
|
||||
0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65,
|
||||
0x63, 0x6b, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69,
|
||||
0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50,
|
||||
0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69,
|
||||
0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f,
|
||||
0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72,
|
||||
0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x43,
|
||||
0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x1e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x69, 0x74, 0x69,
|
||||
0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46,
|
||||
0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b,
|
||||
0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72,
|
||||
0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x69, 0x74, 0x69, 0x65,
|
||||
0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69,
|
||||
0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x1d,
|
||||
0x63, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50,
|
||||
0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x28, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57, 0x69, 0x74,
|
||||
0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65,
|
||||
0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49,
|
||||
0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x15, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61,
|
||||
0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12,
|
||||
0x20, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c,
|
||||
0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 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,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65,
|
||||
0x63, 0x6b, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62,
|
||||
0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76,
|
||||
0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61,
|
||||
0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68,
|
||||
0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68,
|
||||
0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63,
|
||||
0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50,
|
||||
0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x15, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74,
|
||||
0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x20,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69,
|
||||
0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 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 (
|
||||
@@ -1263,7 +1471,7 @@ func file_service_ip_library_file_proto_rawDescGZIP() []byte {
|
||||
return file_service_ip_library_file_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_service_ip_library_file_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
|
||||
var file_service_ip_library_file_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
|
||||
var file_service_ip_library_file_proto_goTypes = []interface{}{
|
||||
(*FindAllUnfinishedIPLibraryFilesRequest)(nil), // 0: pb.FindAllUnfinishedIPLibraryFilesRequest
|
||||
(*FindAllUnfinishedIPLibraryFilesResponse)(nil), // 1: pb.FindAllUnfinishedIPLibraryFilesResponse
|
||||
@@ -1277,52 +1485,60 @@ var file_service_ip_library_file_proto_goTypes = []interface{}{
|
||||
(*CheckProvincesWithIPLibraryFileIdResponse)(nil), // 9: pb.CheckProvincesWithIPLibraryFileIdResponse
|
||||
(*CheckCitiesWithIPLibraryFileIdRequest)(nil), // 10: pb.CheckCitiesWithIPLibraryFileIdRequest
|
||||
(*CheckCitiesWithIPLibraryFileIdResponse)(nil), // 11: pb.CheckCitiesWithIPLibraryFileIdResponse
|
||||
(*CheckProvidersWithIPLibraryFileIdRequest)(nil), // 12: pb.CheckProvidersWithIPLibraryFileIdRequest
|
||||
(*CheckProvidersWithIPLibraryFileIdResponse)(nil), // 13: pb.CheckProvidersWithIPLibraryFileIdResponse
|
||||
(*GenerateIPLibraryFileRequest)(nil), // 14: pb.GenerateIPLibraryFileRequest
|
||||
(*CheckCountriesWithIPLibraryFileIdResponse_MissingCountry)(nil), // 15: pb.CheckCountriesWithIPLibraryFileIdResponse.MissingCountry
|
||||
(*CheckProvincesWithIPLibraryFileIdResponse_MissingProvince)(nil), // 16: pb.CheckProvincesWithIPLibraryFileIdResponse.MissingProvince
|
||||
(*CheckCitiesWithIPLibraryFileIdResponse_MissingCity)(nil), // 17: pb.CheckCitiesWithIPLibraryFileIdResponse.MissingCity
|
||||
(*CheckProvidersWithIPLibraryFileIdResponse_MissingProvider)(nil), // 18: pb.CheckProvidersWithIPLibraryFileIdResponse.MissingProvider
|
||||
(*IPLibraryFile)(nil), // 19: pb.IPLibraryFile
|
||||
(*RegionCountry)(nil), // 20: pb.RegionCountry
|
||||
(*RegionProvince)(nil), // 21: pb.RegionProvince
|
||||
(*RegionCity)(nil), // 22: pb.RegionCity
|
||||
(*RegionProvider)(nil), // 23: pb.RegionProvider
|
||||
(*RPCSuccess)(nil), // 24: pb.RPCSuccess
|
||||
(*CheckTownsWithIPLibraryFileIdRequest)(nil), // 12: pb.CheckTownsWithIPLibraryFileIdRequest
|
||||
(*CheckTownsWithIPLibraryFileIdResponse)(nil), // 13: pb.CheckTownsWithIPLibraryFileIdResponse
|
||||
(*CheckProvidersWithIPLibraryFileIdRequest)(nil), // 14: pb.CheckProvidersWithIPLibraryFileIdRequest
|
||||
(*CheckProvidersWithIPLibraryFileIdResponse)(nil), // 15: pb.CheckProvidersWithIPLibraryFileIdResponse
|
||||
(*GenerateIPLibraryFileRequest)(nil), // 16: pb.GenerateIPLibraryFileRequest
|
||||
(*CheckCountriesWithIPLibraryFileIdResponse_MissingCountry)(nil), // 17: pb.CheckCountriesWithIPLibraryFileIdResponse.MissingCountry
|
||||
(*CheckProvincesWithIPLibraryFileIdResponse_MissingProvince)(nil), // 18: pb.CheckProvincesWithIPLibraryFileIdResponse.MissingProvince
|
||||
(*CheckCitiesWithIPLibraryFileIdResponse_MissingCity)(nil), // 19: pb.CheckCitiesWithIPLibraryFileIdResponse.MissingCity
|
||||
(*CheckTownsWithIPLibraryFileIdResponse_MissingTown)(nil), // 20: pb.CheckTownsWithIPLibraryFileIdResponse.MissingTown
|
||||
(*CheckProvidersWithIPLibraryFileIdResponse_MissingProvider)(nil), // 21: pb.CheckProvidersWithIPLibraryFileIdResponse.MissingProvider
|
||||
(*IPLibraryFile)(nil), // 22: pb.IPLibraryFile
|
||||
(*RegionCountry)(nil), // 23: pb.RegionCountry
|
||||
(*RegionProvince)(nil), // 24: pb.RegionProvince
|
||||
(*RegionCity)(nil), // 25: pb.RegionCity
|
||||
(*RegionTown)(nil), // 26: pb.RegionTown
|
||||
(*RegionProvider)(nil), // 27: pb.RegionProvider
|
||||
(*RPCSuccess)(nil), // 28: pb.RPCSuccess
|
||||
}
|
||||
var file_service_ip_library_file_proto_depIdxs = []int32{
|
||||
19, // 0: pb.FindAllUnfinishedIPLibraryFilesResponse.ipLibraryFiles:type_name -> pb.IPLibraryFile
|
||||
19, // 1: pb.FindIPLibraryFileResponse.ipLibraryFile:type_name -> pb.IPLibraryFile
|
||||
15, // 2: pb.CheckCountriesWithIPLibraryFileIdResponse.missingCountries:type_name -> pb.CheckCountriesWithIPLibraryFileIdResponse.MissingCountry
|
||||
16, // 3: pb.CheckProvincesWithIPLibraryFileIdResponse.missingProvinces:type_name -> pb.CheckProvincesWithIPLibraryFileIdResponse.MissingProvince
|
||||
17, // 4: pb.CheckCitiesWithIPLibraryFileIdResponse.missingCities:type_name -> pb.CheckCitiesWithIPLibraryFileIdResponse.MissingCity
|
||||
18, // 5: pb.CheckProvidersWithIPLibraryFileIdResponse.missingProviders:type_name -> pb.CheckProvidersWithIPLibraryFileIdResponse.MissingProvider
|
||||
20, // 6: pb.CheckCountriesWithIPLibraryFileIdResponse.MissingCountry.similarCountries:type_name -> pb.RegionCountry
|
||||
21, // 7: pb.CheckProvincesWithIPLibraryFileIdResponse.MissingProvince.similarProvinces:type_name -> pb.RegionProvince
|
||||
22, // 8: pb.CheckCitiesWithIPLibraryFileIdResponse.MissingCity.similarCities:type_name -> pb.RegionCity
|
||||
23, // 9: pb.CheckProvidersWithIPLibraryFileIdResponse.MissingProvider.similarProviders:type_name -> pb.RegionProvider
|
||||
0, // 10: pb.IPLibraryFileService.findAllUnfinishedIPLibraryFiles:input_type -> pb.FindAllUnfinishedIPLibraryFilesRequest
|
||||
2, // 11: pb.IPLibraryFileService.findIPLibraryFile:input_type -> pb.FindIPLibraryFileRequest
|
||||
4, // 12: pb.IPLibraryFileService.createIPLibraryFile:input_type -> pb.CreateIPLibraryFileRequest
|
||||
6, // 13: pb.IPLibraryFileService.checkCountriesWithIPLibraryFileId:input_type -> pb.CheckCountriesWithIPLibraryFileIdRequest
|
||||
8, // 14: pb.IPLibraryFileService.checkProvincesWithIPLibraryFileId:input_type -> pb.CheckProvincesWithIPLibraryFileIdRequest
|
||||
10, // 15: pb.IPLibraryFileService.checkCitiesWithIPLibraryFileId:input_type -> pb.CheckCitiesWithIPLibraryFileIdRequest
|
||||
12, // 16: pb.IPLibraryFileService.checkProvidersWithIPLibraryFileId:input_type -> pb.CheckProvidersWithIPLibraryFileIdRequest
|
||||
14, // 17: pb.IPLibraryFileService.generateIPLibraryFile:input_type -> pb.GenerateIPLibraryFileRequest
|
||||
1, // 18: pb.IPLibraryFileService.findAllUnfinishedIPLibraryFiles:output_type -> pb.FindAllUnfinishedIPLibraryFilesResponse
|
||||
3, // 19: pb.IPLibraryFileService.findIPLibraryFile:output_type -> pb.FindIPLibraryFileResponse
|
||||
5, // 20: pb.IPLibraryFileService.createIPLibraryFile:output_type -> pb.CreateIPLibraryFileResponse
|
||||
7, // 21: pb.IPLibraryFileService.checkCountriesWithIPLibraryFileId:output_type -> pb.CheckCountriesWithIPLibraryFileIdResponse
|
||||
9, // 22: pb.IPLibraryFileService.checkProvincesWithIPLibraryFileId:output_type -> pb.CheckProvincesWithIPLibraryFileIdResponse
|
||||
11, // 23: pb.IPLibraryFileService.checkCitiesWithIPLibraryFileId:output_type -> pb.CheckCitiesWithIPLibraryFileIdResponse
|
||||
13, // 24: pb.IPLibraryFileService.checkProvidersWithIPLibraryFileId:output_type -> pb.CheckProvidersWithIPLibraryFileIdResponse
|
||||
24, // 25: pb.IPLibraryFileService.generateIPLibraryFile:output_type -> pb.RPCSuccess
|
||||
18, // [18:26] is the sub-list for method output_type
|
||||
10, // [10:18] 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
|
||||
22, // 0: pb.FindAllUnfinishedIPLibraryFilesResponse.ipLibraryFiles:type_name -> pb.IPLibraryFile
|
||||
22, // 1: pb.FindIPLibraryFileResponse.ipLibraryFile:type_name -> pb.IPLibraryFile
|
||||
17, // 2: pb.CheckCountriesWithIPLibraryFileIdResponse.missingCountries:type_name -> pb.CheckCountriesWithIPLibraryFileIdResponse.MissingCountry
|
||||
18, // 3: pb.CheckProvincesWithIPLibraryFileIdResponse.missingProvinces:type_name -> pb.CheckProvincesWithIPLibraryFileIdResponse.MissingProvince
|
||||
19, // 4: pb.CheckCitiesWithIPLibraryFileIdResponse.missingCities:type_name -> pb.CheckCitiesWithIPLibraryFileIdResponse.MissingCity
|
||||
20, // 5: pb.CheckTownsWithIPLibraryFileIdResponse.missingTowns:type_name -> pb.CheckTownsWithIPLibraryFileIdResponse.MissingTown
|
||||
21, // 6: pb.CheckProvidersWithIPLibraryFileIdResponse.missingProviders:type_name -> pb.CheckProvidersWithIPLibraryFileIdResponse.MissingProvider
|
||||
23, // 7: pb.CheckCountriesWithIPLibraryFileIdResponse.MissingCountry.similarCountries:type_name -> pb.RegionCountry
|
||||
24, // 8: pb.CheckProvincesWithIPLibraryFileIdResponse.MissingProvince.similarProvinces:type_name -> pb.RegionProvince
|
||||
25, // 9: pb.CheckCitiesWithIPLibraryFileIdResponse.MissingCity.similarCities:type_name -> pb.RegionCity
|
||||
26, // 10: pb.CheckTownsWithIPLibraryFileIdResponse.MissingTown.similarTowns:type_name -> pb.RegionTown
|
||||
27, // 11: pb.CheckProvidersWithIPLibraryFileIdResponse.MissingProvider.similarProviders:type_name -> pb.RegionProvider
|
||||
0, // 12: pb.IPLibraryFileService.findAllUnfinishedIPLibraryFiles:input_type -> pb.FindAllUnfinishedIPLibraryFilesRequest
|
||||
2, // 13: pb.IPLibraryFileService.findIPLibraryFile:input_type -> pb.FindIPLibraryFileRequest
|
||||
4, // 14: pb.IPLibraryFileService.createIPLibraryFile:input_type -> pb.CreateIPLibraryFileRequest
|
||||
6, // 15: pb.IPLibraryFileService.checkCountriesWithIPLibraryFileId:input_type -> pb.CheckCountriesWithIPLibraryFileIdRequest
|
||||
8, // 16: pb.IPLibraryFileService.checkProvincesWithIPLibraryFileId:input_type -> pb.CheckProvincesWithIPLibraryFileIdRequest
|
||||
10, // 17: pb.IPLibraryFileService.checkCitiesWithIPLibraryFileId:input_type -> pb.CheckCitiesWithIPLibraryFileIdRequest
|
||||
12, // 18: pb.IPLibraryFileService.checkTownsWithIPLibraryFileId:input_type -> pb.CheckTownsWithIPLibraryFileIdRequest
|
||||
14, // 19: pb.IPLibraryFileService.checkProvidersWithIPLibraryFileId:input_type -> pb.CheckProvidersWithIPLibraryFileIdRequest
|
||||
16, // 20: pb.IPLibraryFileService.generateIPLibraryFile:input_type -> pb.GenerateIPLibraryFileRequest
|
||||
1, // 21: pb.IPLibraryFileService.findAllUnfinishedIPLibraryFiles:output_type -> pb.FindAllUnfinishedIPLibraryFilesResponse
|
||||
3, // 22: pb.IPLibraryFileService.findIPLibraryFile:output_type -> pb.FindIPLibraryFileResponse
|
||||
5, // 23: pb.IPLibraryFileService.createIPLibraryFile:output_type -> pb.CreateIPLibraryFileResponse
|
||||
7, // 24: pb.IPLibraryFileService.checkCountriesWithIPLibraryFileId:output_type -> pb.CheckCountriesWithIPLibraryFileIdResponse
|
||||
9, // 25: pb.IPLibraryFileService.checkProvincesWithIPLibraryFileId:output_type -> pb.CheckProvincesWithIPLibraryFileIdResponse
|
||||
11, // 26: pb.IPLibraryFileService.checkCitiesWithIPLibraryFileId:output_type -> pb.CheckCitiesWithIPLibraryFileIdResponse
|
||||
13, // 27: pb.IPLibraryFileService.checkTownsWithIPLibraryFileId:output_type -> pb.CheckTownsWithIPLibraryFileIdResponse
|
||||
15, // 28: pb.IPLibraryFileService.checkProvidersWithIPLibraryFileId:output_type -> pb.CheckProvidersWithIPLibraryFileIdResponse
|
||||
28, // 29: pb.IPLibraryFileService.generateIPLibraryFile:output_type -> pb.RPCSuccess
|
||||
21, // [21:30] is the sub-list for method output_type
|
||||
12, // [12:21] is the sub-list for method input_type
|
||||
12, // [12:12] is the sub-list for extension type_name
|
||||
12, // [12:12] is the sub-list for extension extendee
|
||||
0, // [0:12] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_service_ip_library_file_proto_init() }
|
||||
@@ -1335,6 +1551,7 @@ func file_service_ip_library_file_proto_init() {
|
||||
file_models_model_region_country_proto_init()
|
||||
file_models_model_region_province_proto_init()
|
||||
file_models_model_region_city_proto_init()
|
||||
file_models_model_region_town_proto_init()
|
||||
file_models_model_region_provider_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_service_ip_library_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
@@ -1482,7 +1699,7 @@ func file_service_ip_library_file_proto_init() {
|
||||
}
|
||||
}
|
||||
file_service_ip_library_file_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CheckProvidersWithIPLibraryFileIdRequest); i {
|
||||
switch v := v.(*CheckTownsWithIPLibraryFileIdRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -1494,7 +1711,7 @@ func file_service_ip_library_file_proto_init() {
|
||||
}
|
||||
}
|
||||
file_service_ip_library_file_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CheckProvidersWithIPLibraryFileIdResponse); i {
|
||||
switch v := v.(*CheckTownsWithIPLibraryFileIdResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -1506,7 +1723,7 @@ func file_service_ip_library_file_proto_init() {
|
||||
}
|
||||
}
|
||||
file_service_ip_library_file_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GenerateIPLibraryFileRequest); i {
|
||||
switch v := v.(*CheckProvidersWithIPLibraryFileIdRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -1518,7 +1735,7 @@ func file_service_ip_library_file_proto_init() {
|
||||
}
|
||||
}
|
||||
file_service_ip_library_file_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CheckCountriesWithIPLibraryFileIdResponse_MissingCountry); i {
|
||||
switch v := v.(*CheckProvidersWithIPLibraryFileIdResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -1530,7 +1747,7 @@ func file_service_ip_library_file_proto_init() {
|
||||
}
|
||||
}
|
||||
file_service_ip_library_file_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CheckProvincesWithIPLibraryFileIdResponse_MissingProvince); i {
|
||||
switch v := v.(*GenerateIPLibraryFileRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -1542,7 +1759,7 @@ func file_service_ip_library_file_proto_init() {
|
||||
}
|
||||
}
|
||||
file_service_ip_library_file_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CheckCitiesWithIPLibraryFileIdResponse_MissingCity); i {
|
||||
switch v := v.(*CheckCountriesWithIPLibraryFileIdResponse_MissingCountry); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -1554,6 +1771,42 @@ func file_service_ip_library_file_proto_init() {
|
||||
}
|
||||
}
|
||||
file_service_ip_library_file_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CheckProvincesWithIPLibraryFileIdResponse_MissingProvince); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_ip_library_file_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CheckCitiesWithIPLibraryFileIdResponse_MissingCity); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_ip_library_file_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CheckTownsWithIPLibraryFileIdResponse_MissingTown); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_ip_library_file_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CheckProvidersWithIPLibraryFileIdResponse_MissingProvider); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -1572,7 +1825,7 @@ func file_service_ip_library_file_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_service_ip_library_file_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 19,
|
||||
NumMessages: 22,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
@@ -1610,6 +1863,8 @@ type IPLibraryFileServiceClient interface {
|
||||
CheckProvincesWithIPLibraryFileId(ctx context.Context, in *CheckProvincesWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckProvincesWithIPLibraryFileIdResponse, error)
|
||||
// 检查城市/市
|
||||
CheckCitiesWithIPLibraryFileId(ctx context.Context, in *CheckCitiesWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckCitiesWithIPLibraryFileIdResponse, error)
|
||||
// 检查区县
|
||||
CheckTownsWithIPLibraryFileId(ctx context.Context, in *CheckTownsWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckTownsWithIPLibraryFileIdResponse, error)
|
||||
// 检查ISP运营商
|
||||
CheckProvidersWithIPLibraryFileId(ctx context.Context, in *CheckProvidersWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckProvidersWithIPLibraryFileIdResponse, error)
|
||||
// 生成IP库文件
|
||||
@@ -1678,6 +1933,15 @@ func (c *iPLibraryFileServiceClient) CheckCitiesWithIPLibraryFileId(ctx context.
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *iPLibraryFileServiceClient) CheckTownsWithIPLibraryFileId(ctx context.Context, in *CheckTownsWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckTownsWithIPLibraryFileIdResponse, error) {
|
||||
out := new(CheckTownsWithIPLibraryFileIdResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.IPLibraryFileService/checkTownsWithIPLibraryFileId", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *iPLibraryFileServiceClient) CheckProvidersWithIPLibraryFileId(ctx context.Context, in *CheckProvidersWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckProvidersWithIPLibraryFileIdResponse, error) {
|
||||
out := new(CheckProvidersWithIPLibraryFileIdResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.IPLibraryFileService/checkProvidersWithIPLibraryFileId", in, out, opts...)
|
||||
@@ -1710,6 +1974,8 @@ type IPLibraryFileServiceServer interface {
|
||||
CheckProvincesWithIPLibraryFileId(context.Context, *CheckProvincesWithIPLibraryFileIdRequest) (*CheckProvincesWithIPLibraryFileIdResponse, error)
|
||||
// 检查城市/市
|
||||
CheckCitiesWithIPLibraryFileId(context.Context, *CheckCitiesWithIPLibraryFileIdRequest) (*CheckCitiesWithIPLibraryFileIdResponse, error)
|
||||
// 检查区县
|
||||
CheckTownsWithIPLibraryFileId(context.Context, *CheckTownsWithIPLibraryFileIdRequest) (*CheckTownsWithIPLibraryFileIdResponse, error)
|
||||
// 检查ISP运营商
|
||||
CheckProvidersWithIPLibraryFileId(context.Context, *CheckProvidersWithIPLibraryFileIdRequest) (*CheckProvidersWithIPLibraryFileIdResponse, error)
|
||||
// 生成IP库文件
|
||||
@@ -1738,6 +2004,9 @@ func (*UnimplementedIPLibraryFileServiceServer) CheckProvincesWithIPLibraryFileI
|
||||
func (*UnimplementedIPLibraryFileServiceServer) CheckCitiesWithIPLibraryFileId(context.Context, *CheckCitiesWithIPLibraryFileIdRequest) (*CheckCitiesWithIPLibraryFileIdResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CheckCitiesWithIPLibraryFileId not implemented")
|
||||
}
|
||||
func (*UnimplementedIPLibraryFileServiceServer) CheckTownsWithIPLibraryFileId(context.Context, *CheckTownsWithIPLibraryFileIdRequest) (*CheckTownsWithIPLibraryFileIdResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CheckTownsWithIPLibraryFileId not implemented")
|
||||
}
|
||||
func (*UnimplementedIPLibraryFileServiceServer) CheckProvidersWithIPLibraryFileId(context.Context, *CheckProvidersWithIPLibraryFileIdRequest) (*CheckProvidersWithIPLibraryFileIdResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CheckProvidersWithIPLibraryFileId not implemented")
|
||||
}
|
||||
@@ -1857,6 +2126,24 @@ func _IPLibraryFileService_CheckCitiesWithIPLibraryFileId_Handler(srv interface{
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _IPLibraryFileService_CheckTownsWithIPLibraryFileId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CheckTownsWithIPLibraryFileIdRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(IPLibraryFileServiceServer).CheckTownsWithIPLibraryFileId(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.IPLibraryFileService/CheckTownsWithIPLibraryFileId",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(IPLibraryFileServiceServer).CheckTownsWithIPLibraryFileId(ctx, req.(*CheckTownsWithIPLibraryFileIdRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _IPLibraryFileService_CheckProvidersWithIPLibraryFileId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CheckProvidersWithIPLibraryFileIdRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -1921,6 +2208,10 @@ var _IPLibraryFileService_serviceDesc = grpc.ServiceDesc{
|
||||
MethodName: "checkCitiesWithIPLibraryFileId",
|
||||
Handler: _IPLibraryFileService_CheckCitiesWithIPLibraryFileId_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "checkTownsWithIPLibraryFileId",
|
||||
Handler: _IPLibraryFileService_CheckTownsWithIPLibraryFileId_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "checkProvidersWithIPLibraryFileId",
|
||||
Handler: _IPLibraryFileService_CheckProvidersWithIPLibraryFileId_Handler,
|
||||
|
||||
805
pkg/rpc/pb/service_region_town.pb.go
Normal file
805
pkg/rpc/pb/service_region_town.pb.go
Normal file
@@ -0,0 +1,805 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.19.4
|
||||
// source: service_region_town.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
context "context"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// 查找所有区县
|
||||
type FindAllRegionTownsRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
IncludeRegionCity bool `protobuf:"varint,1,opt,name=includeRegionCity,proto3" json:"includeRegionCity,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindAllRegionTownsRequest) Reset() {
|
||||
*x = FindAllRegionTownsRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_region_town_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindAllRegionTownsRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindAllRegionTownsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *FindAllRegionTownsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_region_town_proto_msgTypes[0]
|
||||
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 FindAllRegionTownsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*FindAllRegionTownsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_region_town_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *FindAllRegionTownsRequest) GetIncludeRegionCity() bool {
|
||||
if x != nil {
|
||||
return x.IncludeRegionCity
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type FindAllRegionTownsResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
RegionTowns []*RegionTown `protobuf:"bytes,1,rep,name=regionTowns,proto3" json:"regionTowns,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindAllRegionTownsResponse) Reset() {
|
||||
*x = FindAllRegionTownsResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_region_town_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindAllRegionTownsResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindAllRegionTownsResponse) ProtoMessage() {}
|
||||
|
||||
func (x *FindAllRegionTownsResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_region_town_proto_msgTypes[1]
|
||||
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 FindAllRegionTownsResponse.ProtoReflect.Descriptor instead.
|
||||
func (*FindAllRegionTownsResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_region_town_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *FindAllRegionTownsResponse) GetRegionTowns() []*RegionTown {
|
||||
if x != nil {
|
||||
return x.RegionTowns
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 查找某个城市的所有区县
|
||||
type FindAllRegionTownsWithRegionCityIdRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
RegionCityId int64 `protobuf:"varint,1,opt,name=regionCityId,proto3" json:"regionCityId,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindAllRegionTownsWithRegionCityIdRequest) Reset() {
|
||||
*x = FindAllRegionTownsWithRegionCityIdRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_region_town_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindAllRegionTownsWithRegionCityIdRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindAllRegionTownsWithRegionCityIdRequest) ProtoMessage() {}
|
||||
|
||||
func (x *FindAllRegionTownsWithRegionCityIdRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_region_town_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 FindAllRegionTownsWithRegionCityIdRequest.ProtoReflect.Descriptor instead.
|
||||
func (*FindAllRegionTownsWithRegionCityIdRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_region_town_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *FindAllRegionTownsWithRegionCityIdRequest) GetRegionCityId() int64 {
|
||||
if x != nil {
|
||||
return x.RegionCityId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type FindAllRegionTownsWithRegionCityIdResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
RegionTowns []*RegionTown `protobuf:"bytes,1,rep,name=regionTowns,proto3" json:"regionTowns,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindAllRegionTownsWithRegionCityIdResponse) Reset() {
|
||||
*x = FindAllRegionTownsWithRegionCityIdResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_region_town_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindAllRegionTownsWithRegionCityIdResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindAllRegionTownsWithRegionCityIdResponse) ProtoMessage() {}
|
||||
|
||||
func (x *FindAllRegionTownsWithRegionCityIdResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_region_town_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 FindAllRegionTownsWithRegionCityIdResponse.ProtoReflect.Descriptor instead.
|
||||
func (*FindAllRegionTownsWithRegionCityIdResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_region_town_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *FindAllRegionTownsWithRegionCityIdResponse) GetRegionTowns() []*RegionTown {
|
||||
if x != nil {
|
||||
return x.RegionTowns
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 查找单个区县信息
|
||||
type FindRegionTownRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
RegionTownId int64 `protobuf:"varint,1,opt,name=regionTownId,proto3" json:"regionTownId,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindRegionTownRequest) Reset() {
|
||||
*x = FindRegionTownRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_region_town_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindRegionTownRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindRegionTownRequest) ProtoMessage() {}
|
||||
|
||||
func (x *FindRegionTownRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_region_town_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 FindRegionTownRequest.ProtoReflect.Descriptor instead.
|
||||
func (*FindRegionTownRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_region_town_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *FindRegionTownRequest) GetRegionTownId() int64 {
|
||||
if x != nil {
|
||||
return x.RegionTownId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type FindRegionTownResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
RegionTown *RegionTown `protobuf:"bytes,1,opt,name=regionTown,proto3" json:"regionTown,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindRegionTownResponse) Reset() {
|
||||
*x = FindRegionTownResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_region_town_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindRegionTownResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindRegionTownResponse) ProtoMessage() {}
|
||||
|
||||
func (x *FindRegionTownResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_region_town_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 FindRegionTownResponse.ProtoReflect.Descriptor instead.
|
||||
func (*FindRegionTownResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_region_town_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *FindRegionTownResponse) GetRegionTown() *RegionTown {
|
||||
if x != nil {
|
||||
return x.RegionTown
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 修改区县定制信息
|
||||
type UpdateRegionTownCustomRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
RegionTownId int64 `protobuf:"varint,1,opt,name=regionTownId,proto3" json:"regionTownId,omitempty"`
|
||||
CustomName string `protobuf:"bytes,2,opt,name=customName,proto3" json:"customName,omitempty"`
|
||||
CustomCodes []string `protobuf:"bytes,3,rep,name=customCodes,proto3" json:"customCodes,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UpdateRegionTownCustomRequest) Reset() {
|
||||
*x = UpdateRegionTownCustomRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_region_town_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *UpdateRegionTownCustomRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdateRegionTownCustomRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateRegionTownCustomRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_region_town_proto_msgTypes[6]
|
||||
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 UpdateRegionTownCustomRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateRegionTownCustomRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_region_town_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *UpdateRegionTownCustomRequest) GetRegionTownId() int64 {
|
||||
if x != nil {
|
||||
return x.RegionTownId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UpdateRegionTownCustomRequest) GetCustomName() string {
|
||||
if x != nil {
|
||||
return x.CustomName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdateRegionTownCustomRequest) GetCustomCodes() []string {
|
||||
if x != nil {
|
||||
return x.CustomCodes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_service_region_town_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_service_region_town_proto_rawDesc = []byte{
|
||||
0x0a, 0x19, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
||||
0x5f, 0x74, 0x6f, 0x77, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a,
|
||||
0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65,
|
||||
0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x77, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
|
||||
0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x49, 0x0a, 0x19, 0x46, 0x69,
|
||||
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x11, 0x69, 0x6e, 0x63, 0x6c, 0x75,
|
||||
0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x08, 0x52, 0x11, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f,
|
||||
0x6e, 0x43, 0x69, 0x74, 0x79, 0x22, 0x4e, 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
|
||||
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77,
|
||||
0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65,
|
||||
0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
||||
0x54, 0x6f, 0x77, 0x6e, 0x73, 0x22, 0x4f, 0x0a, 0x29, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
|
||||
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52,
|
||||
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79,
|
||||
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
||||
0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x5e, 0x0a, 0x2a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
|
||||
0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68,
|
||||
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f,
|
||||
0x77, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52,
|
||||
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f,
|
||||
0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x22, 0x3b, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65,
|
||||
0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||||
0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x49, 0x64, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77,
|
||||
0x6e, 0x49, 0x64, 0x22, 0x48, 0x0a, 0x16, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f,
|
||||
0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a,
|
||||
0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77,
|
||||
0x6e, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x22, 0x85, 0x01,
|
||||
0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f,
|
||||
0x77, 0x6e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||||
0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x49, 0x64, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77,
|
||||
0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d,
|
||||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e,
|
||||
0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64,
|
||||
0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d,
|
||||
0x43, 0x6f, 0x64, 0x65, 0x73, 0x32, 0x84, 0x03, 0x0a, 0x11, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
||||
0x54, 0x6f, 0x77, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x66,
|
||||
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e,
|
||||
0x73, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65,
|
||||
0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67,
|
||||
0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x12, 0x83, 0x01, 0x0a, 0x22, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69,
|
||||
0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f,
|
||||
0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
|
||||
0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57,
|
||||
0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
|
||||
0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57, 0x69,
|
||||
0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65,
|
||||
0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
|
||||
0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67,
|
||||
0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||
0x4b, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54,
|
||||
0x6f, 0x77, 0x6e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x55,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x43,
|
||||
0x75, 0x73, 0x74, 0x6f, 0x6d, 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 (
|
||||
file_service_region_town_proto_rawDescOnce sync.Once
|
||||
file_service_region_town_proto_rawDescData = file_service_region_town_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_service_region_town_proto_rawDescGZIP() []byte {
|
||||
file_service_region_town_proto_rawDescOnce.Do(func() {
|
||||
file_service_region_town_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_region_town_proto_rawDescData)
|
||||
})
|
||||
return file_service_region_town_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_service_region_town_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_service_region_town_proto_goTypes = []interface{}{
|
||||
(*FindAllRegionTownsRequest)(nil), // 0: pb.FindAllRegionTownsRequest
|
||||
(*FindAllRegionTownsResponse)(nil), // 1: pb.FindAllRegionTownsResponse
|
||||
(*FindAllRegionTownsWithRegionCityIdRequest)(nil), // 2: pb.FindAllRegionTownsWithRegionCityIdRequest
|
||||
(*FindAllRegionTownsWithRegionCityIdResponse)(nil), // 3: pb.FindAllRegionTownsWithRegionCityIdResponse
|
||||
(*FindRegionTownRequest)(nil), // 4: pb.FindRegionTownRequest
|
||||
(*FindRegionTownResponse)(nil), // 5: pb.FindRegionTownResponse
|
||||
(*UpdateRegionTownCustomRequest)(nil), // 6: pb.UpdateRegionTownCustomRequest
|
||||
(*RegionTown)(nil), // 7: pb.RegionTown
|
||||
(*RPCSuccess)(nil), // 8: pb.RPCSuccess
|
||||
}
|
||||
var file_service_region_town_proto_depIdxs = []int32{
|
||||
7, // 0: pb.FindAllRegionTownsResponse.regionTowns:type_name -> pb.RegionTown
|
||||
7, // 1: pb.FindAllRegionTownsWithRegionCityIdResponse.regionTowns:type_name -> pb.RegionTown
|
||||
7, // 2: pb.FindRegionTownResponse.regionTown:type_name -> pb.RegionTown
|
||||
0, // 3: pb.RegionTownService.findAllRegionTowns:input_type -> pb.FindAllRegionTownsRequest
|
||||
2, // 4: pb.RegionTownService.findAllRegionTownsWithRegionCityId:input_type -> pb.FindAllRegionTownsWithRegionCityIdRequest
|
||||
4, // 5: pb.RegionTownService.findRegionTown:input_type -> pb.FindRegionTownRequest
|
||||
6, // 6: pb.RegionTownService.updateRegionTownCustom:input_type -> pb.UpdateRegionTownCustomRequest
|
||||
1, // 7: pb.RegionTownService.findAllRegionTowns:output_type -> pb.FindAllRegionTownsResponse
|
||||
3, // 8: pb.RegionTownService.findAllRegionTownsWithRegionCityId:output_type -> pb.FindAllRegionTownsWithRegionCityIdResponse
|
||||
5, // 9: pb.RegionTownService.findRegionTown:output_type -> pb.FindRegionTownResponse
|
||||
8, // 10: pb.RegionTownService.updateRegionTownCustom:output_type -> pb.RPCSuccess
|
||||
7, // [7:11] is the sub-list for method output_type
|
||||
3, // [3:7] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_service_region_town_proto_init() }
|
||||
func file_service_region_town_proto_init() {
|
||||
if File_service_region_town_proto != nil {
|
||||
return
|
||||
}
|
||||
file_models_model_region_town_proto_init()
|
||||
file_models_rpc_messages_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_service_region_town_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindAllRegionTownsRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_region_town_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindAllRegionTownsResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_region_town_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindAllRegionTownsWithRegionCityIdRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_region_town_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindAllRegionTownsWithRegionCityIdResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_region_town_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindRegionTownRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_region_town_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindRegionTownResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_region_town_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UpdateRegionTownCustomRequest); 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{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_service_region_town_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_service_region_town_proto_goTypes,
|
||||
DependencyIndexes: file_service_region_town_proto_depIdxs,
|
||||
MessageInfos: file_service_region_town_proto_msgTypes,
|
||||
}.Build()
|
||||
File_service_region_town_proto = out.File
|
||||
file_service_region_town_proto_rawDesc = nil
|
||||
file_service_region_town_proto_goTypes = nil
|
||||
file_service_region_town_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConnInterface
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion6
|
||||
|
||||
// RegionTownServiceClient is the client API for RegionTownService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type RegionTownServiceClient interface {
|
||||
// 查找所有区县
|
||||
FindAllRegionTowns(ctx context.Context, in *FindAllRegionTownsRequest, opts ...grpc.CallOption) (*FindAllRegionTownsResponse, error)
|
||||
// 查找某个城市的所有区县
|
||||
FindAllRegionTownsWithRegionCityId(ctx context.Context, in *FindAllRegionTownsWithRegionCityIdRequest, opts ...grpc.CallOption) (*FindAllRegionTownsWithRegionCityIdResponse, error)
|
||||
// 查找单个区县信息
|
||||
FindRegionTown(ctx context.Context, in *FindRegionTownRequest, opts ...grpc.CallOption) (*FindRegionTownResponse, error)
|
||||
// 修改区县定制信息
|
||||
UpdateRegionTownCustom(ctx context.Context, in *UpdateRegionTownCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
}
|
||||
|
||||
type regionTownServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewRegionTownServiceClient(cc grpc.ClientConnInterface) RegionTownServiceClient {
|
||||
return ®ionTownServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *regionTownServiceClient) FindAllRegionTowns(ctx context.Context, in *FindAllRegionTownsRequest, opts ...grpc.CallOption) (*FindAllRegionTownsResponse, error) {
|
||||
out := new(FindAllRegionTownsResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.RegionTownService/findAllRegionTowns", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *regionTownServiceClient) FindAllRegionTownsWithRegionCityId(ctx context.Context, in *FindAllRegionTownsWithRegionCityIdRequest, opts ...grpc.CallOption) (*FindAllRegionTownsWithRegionCityIdResponse, error) {
|
||||
out := new(FindAllRegionTownsWithRegionCityIdResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.RegionTownService/findAllRegionTownsWithRegionCityId", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *regionTownServiceClient) FindRegionTown(ctx context.Context, in *FindRegionTownRequest, opts ...grpc.CallOption) (*FindRegionTownResponse, error) {
|
||||
out := new(FindRegionTownResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.RegionTownService/findRegionTown", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *regionTownServiceClient) UpdateRegionTownCustom(ctx context.Context, in *UpdateRegionTownCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.RegionTownService/updateRegionTownCustom", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// RegionTownServiceServer is the server API for RegionTownService service.
|
||||
type RegionTownServiceServer interface {
|
||||
// 查找所有区县
|
||||
FindAllRegionTowns(context.Context, *FindAllRegionTownsRequest) (*FindAllRegionTownsResponse, error)
|
||||
// 查找某个城市的所有区县
|
||||
FindAllRegionTownsWithRegionCityId(context.Context, *FindAllRegionTownsWithRegionCityIdRequest) (*FindAllRegionTownsWithRegionCityIdResponse, error)
|
||||
// 查找单个区县信息
|
||||
FindRegionTown(context.Context, *FindRegionTownRequest) (*FindRegionTownResponse, error)
|
||||
// 修改区县定制信息
|
||||
UpdateRegionTownCustom(context.Context, *UpdateRegionTownCustomRequest) (*RPCSuccess, error)
|
||||
}
|
||||
|
||||
// UnimplementedRegionTownServiceServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedRegionTownServiceServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedRegionTownServiceServer) FindAllRegionTowns(context.Context, *FindAllRegionTownsRequest) (*FindAllRegionTownsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionTowns not implemented")
|
||||
}
|
||||
func (*UnimplementedRegionTownServiceServer) FindAllRegionTownsWithRegionCityId(context.Context, *FindAllRegionTownsWithRegionCityIdRequest) (*FindAllRegionTownsWithRegionCityIdResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionTownsWithRegionCityId not implemented")
|
||||
}
|
||||
func (*UnimplementedRegionTownServiceServer) FindRegionTown(context.Context, *FindRegionTownRequest) (*FindRegionTownResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindRegionTown not implemented")
|
||||
}
|
||||
func (*UnimplementedRegionTownServiceServer) UpdateRegionTownCustom(context.Context, *UpdateRegionTownCustomRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateRegionTownCustom not implemented")
|
||||
}
|
||||
|
||||
func RegisterRegionTownServiceServer(s *grpc.Server, srv RegionTownServiceServer) {
|
||||
s.RegisterService(&_RegionTownService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _RegionTownService_FindAllRegionTowns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindAllRegionTownsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(RegionTownServiceServer).FindAllRegionTowns(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.RegionTownService/FindAllRegionTowns",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(RegionTownServiceServer).FindAllRegionTowns(ctx, req.(*FindAllRegionTownsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _RegionTownService_FindAllRegionTownsWithRegionCityId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindAllRegionTownsWithRegionCityIdRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(RegionTownServiceServer).FindAllRegionTownsWithRegionCityId(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.RegionTownService/FindAllRegionTownsWithRegionCityId",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(RegionTownServiceServer).FindAllRegionTownsWithRegionCityId(ctx, req.(*FindAllRegionTownsWithRegionCityIdRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _RegionTownService_FindRegionTown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindRegionTownRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(RegionTownServiceServer).FindRegionTown(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.RegionTownService/FindRegionTown",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(RegionTownServiceServer).FindRegionTown(ctx, req.(*FindRegionTownRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _RegionTownService_UpdateRegionTownCustom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateRegionTownCustomRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(RegionTownServiceServer).UpdateRegionTownCustom(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.RegionTownService/UpdateRegionTownCustom",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(RegionTownServiceServer).UpdateRegionTownCustom(ctx, req.(*UpdateRegionTownCustomRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _RegionTownService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "pb.RegionTownService",
|
||||
HandlerType: (*RegionTownServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "findAllRegionTowns",
|
||||
Handler: _RegionTownService_FindAllRegionTowns_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findAllRegionTownsWithRegionCityId",
|
||||
Handler: _RegionTownService_FindAllRegionTownsWithRegionCityId_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findRegionTown",
|
||||
Handler: _RegionTownService_FindRegionTown_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "updateRegionTownCustom",
|
||||
Handler: _RegionTownService_UpdateRegionTownCustom_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "service_region_town.proto",
|
||||
}
|
||||
18
pkg/rpc/protos/models/model_region_town.proto
Normal file
18
pkg/rpc/protos/models/model_region_town.proto
Normal file
@@ -0,0 +1,18 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/model_region_city.proto";
|
||||
|
||||
message RegionTown {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
repeated string codes = 3;
|
||||
int64 regionCityId = 4;
|
||||
string customName = 5;
|
||||
repeated string customCodes = 6;
|
||||
string displayName = 7;
|
||||
|
||||
RegionCity regionCity = 30;
|
||||
}
|
||||
@@ -9,25 +9,39 @@ import "models/model_ip_library.proto";
|
||||
// IP库
|
||||
service IPLibraryService {
|
||||
// 创建IP库
|
||||
rpc createIPLibrary (CreateIPLibraryRequest) returns (CreateIPLibraryResponse);
|
||||
rpc createIPLibrary (CreateIPLibraryRequest) returns (CreateIPLibraryResponse) {
|
||||
option deprecated = true;
|
||||
};
|
||||
|
||||
// 查找最新的IP库
|
||||
rpc findLatestIPLibraryWithType (FindLatestIPLibraryWithTypeRequest) returns (FindLatestIPLibraryWithTypeResponse);
|
||||
rpc findLatestIPLibraryWithType (FindLatestIPLibraryWithTypeRequest) returns (FindLatestIPLibraryWithTypeResponse) {
|
||||
option deprecated = true;
|
||||
};
|
||||
|
||||
// 查找单个IP库
|
||||
rpc findEnabledIPLibrary (FindEnabledIPLibraryRequest) returns (FindEnabledIPLibraryResponse);
|
||||
rpc findEnabledIPLibrary (FindEnabledIPLibraryRequest) returns (FindEnabledIPLibraryResponse) {
|
||||
option deprecated = true;
|
||||
};
|
||||
|
||||
// 列出某个类型的所有IP库
|
||||
rpc findAllEnabledIPLibrariesWithType (FindAllEnabledIPLibrariesWithTypeRequest) returns (FindAllEnabledIPLibrariesWithTypeResponse);
|
||||
rpc findAllEnabledIPLibrariesWithType (FindAllEnabledIPLibrariesWithTypeRequest) returns (FindAllEnabledIPLibrariesWithTypeResponse) {
|
||||
option deprecated = true;
|
||||
};
|
||||
|
||||
// 删除IP库
|
||||
rpc deleteIPLibrary (DeleteIPLibraryRequest) returns (RPCSuccess);
|
||||
rpc deleteIPLibrary (DeleteIPLibraryRequest) returns (RPCSuccess) {
|
||||
option deprecated = true;
|
||||
};
|
||||
|
||||
// 查询某个IP信息
|
||||
rpc lookupIPRegion (LookupIPRegionRequest) returns (LookupIPRegionResponse);
|
||||
rpc lookupIPRegion (LookupIPRegionRequest) returns (LookupIPRegionResponse) {
|
||||
option deprecated = true;
|
||||
};
|
||||
|
||||
// 查询一组IP信息
|
||||
rpc lookupIPRegions (LookupIPRegionsRequest) returns (LookupIPRegionsResponse);
|
||||
rpc lookupIPRegions (LookupIPRegionsRequest) returns (LookupIPRegionsResponse) {
|
||||
option deprecated = true;
|
||||
};
|
||||
}
|
||||
|
||||
// 创建IP库
|
||||
|
||||
@@ -8,6 +8,7 @@ import "models/model_ip_library_file.proto";
|
||||
import "models/model_region_country.proto";
|
||||
import "models/model_region_province.proto";
|
||||
import "models/model_region_city.proto";
|
||||
import "models/model_region_town.proto";
|
||||
import "models/model_region_provider.proto";
|
||||
|
||||
|
||||
@@ -31,6 +32,9 @@ service IPLibraryFileService {
|
||||
// 检查城市/市
|
||||
rpc checkCitiesWithIPLibraryFileId(CheckCitiesWithIPLibraryFileIdRequest) returns (CheckCitiesWithIPLibraryFileIdResponse);
|
||||
|
||||
// 检查区县
|
||||
rpc checkTownsWithIPLibraryFileId(CheckTownsWithIPLibraryFileIdRequest) returns (CheckTownsWithIPLibraryFileIdResponse);
|
||||
|
||||
// 检查ISP运营商
|
||||
rpc checkProvidersWithIPLibraryFileId(CheckProvidersWithIPLibraryFileIdRequest) returns (CheckProvidersWithIPLibraryFileIdResponse);
|
||||
|
||||
@@ -101,7 +105,6 @@ message CheckProvincesWithIPLibraryFileIdResponse {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 检查城市/市
|
||||
message CheckCitiesWithIPLibraryFileIdRequest{
|
||||
int64 ipLibraryFileId = 1;
|
||||
@@ -118,6 +121,23 @@ message CheckCitiesWithIPLibraryFileIdResponse {
|
||||
}
|
||||
}
|
||||
|
||||
// 检查区县
|
||||
message CheckTownsWithIPLibraryFileIdRequest {
|
||||
int64 ipLibraryFileId = 1;
|
||||
}
|
||||
|
||||
message CheckTownsWithIPLibraryFileIdResponse {
|
||||
repeated MissingTown missingTowns = 1;
|
||||
|
||||
message MissingTown {
|
||||
string countryName = 1;
|
||||
string provinceName = 2;
|
||||
string cityName = 3;
|
||||
string townName = 4;
|
||||
repeated RegionTown similarTowns = 5;
|
||||
}
|
||||
}
|
||||
|
||||
// 检查ISP运营商
|
||||
message CheckProvidersWithIPLibraryFileIdRequest{
|
||||
int64 ipLibraryFileId = 1;
|
||||
|
||||
56
pkg/rpc/protos/service_region_town.proto
Normal file
56
pkg/rpc/protos/service_region_town.proto
Normal file
@@ -0,0 +1,56 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/model_region_town.proto";
|
||||
import "models/rpc_messages.proto";
|
||||
|
||||
// 区县相关服务
|
||||
service RegionTownService {
|
||||
// 查找所有区县
|
||||
rpc findAllRegionTowns (FindAllRegionTownsRequest) returns (FindAllRegionTownsResponse);
|
||||
|
||||
// 查找某个城市的所有区县
|
||||
rpc findAllRegionTownsWithRegionCityId(FindAllRegionTownsWithRegionCityIdRequest) returns (FindAllRegionTownsWithRegionCityIdResponse);
|
||||
|
||||
// 查找单个区县信息
|
||||
rpc findRegionTown (FindRegionTownRequest) returns (FindRegionTownResponse);
|
||||
|
||||
// 修改区县定制信息
|
||||
rpc updateRegionTownCustom(UpdateRegionTownCustomRequest) returns (RPCSuccess);
|
||||
}
|
||||
|
||||
// 查找所有区县
|
||||
message FindAllRegionTownsRequest {
|
||||
bool includeRegionCity = 1;
|
||||
}
|
||||
|
||||
message FindAllRegionTownsResponse {
|
||||
repeated RegionTown regionTowns = 1;
|
||||
}
|
||||
|
||||
// 查找某个城市的所有区县
|
||||
message FindAllRegionTownsWithRegionCityIdRequest {
|
||||
int64 regionCityId = 1;
|
||||
}
|
||||
|
||||
message FindAllRegionTownsWithRegionCityIdResponse {
|
||||
repeated RegionTown regionTowns = 1;
|
||||
}
|
||||
|
||||
// 查找单个区县信息
|
||||
message FindRegionTownRequest {
|
||||
int64 regionTownId = 1;
|
||||
}
|
||||
|
||||
message FindRegionTownResponse {
|
||||
RegionTown regionTown = 1;
|
||||
}
|
||||
|
||||
// 修改区县定制信息
|
||||
message UpdateRegionTownCustomRequest {
|
||||
int64 regionTownId = 1;
|
||||
string customName = 2;
|
||||
repeated string customCodes = 3;
|
||||
}
|
||||
Reference in New Issue
Block a user