增加城市/ISP查询接口

This commit is contained in:
GoEdgeLab
2022-01-06 16:25:23 +08:00
parent f1190623f1
commit 6eddcbcbb6
12 changed files with 251 additions and 31 deletions

View File

@@ -263,6 +263,16 @@ func (this *APINode) registerServices(server *grpc.Server) {
pb.RegisterRegionProvinceServiceServer(server, instance)
this.rest(instance)
}
{
instance := this.serviceInstance(&services.RegionCityService{}).(*services.RegionCityService)
pb.RegisterRegionCityServiceServer(server, instance)
this.rest(instance)
}
{
instance := this.serviceInstance(&services.RegionProviderService{}).(*services.RegionProviderService)
pb.RegisterRegionProviderServiceServer(server, instance)
this.rest(instance)
}
{
instance := this.serviceInstance(&services.IPListService{}).(*services.IPListService)
pb.RegisterIPListServiceServer(server, instance)