def call_remote_service(self, uri: str, method: str, /):
        MAP_METHODS = {
            'POST': self._call_post_service,
            'GET': self._call_get_service,
        }

        response = eureka_client.walk_nodes(app_name=self.remote_service,
                                            service=uri,
                                            walker=MAP_METHODS[method])
        return response
 def _delete_url(self, suffix_url, data, headers=None):
     return eureka_client.walk_nodes(self.service_name, self.base_url + suffix_url,
                                     walker=_walker_generator("delete", json=data, headers=headers))
 def _get_url(self, suffix_url, params: Dict[str, Any] = None, headers: Dict[str, Any] = None):
     # return eureka_client.do_service(self.service_name, self.base_url + suffix_url, headers=headers, return_type="json")
     return eureka_client.walk_nodes(self.service_name, self.base_url + suffix_url,
                                     walker=_walker_generator("get", params=params, headers=headers))