public DiscoveryVO mapToVo(DiscoveryDO discoveryDO) {
        return Optional.ofNullable(discoveryDO).map(data -> {
            DiscoveryVO discoveryVO = new DiscoveryVO();
            discoveryVO.setId(data.getId());
            discoveryVO.setName(data.getName());
            discoveryVO.setNamespaceId(data.getNamespaceId());
            discoveryVO.setType(data.getType());
            discoveryVO.setLevel(data.getLevel());
            discoveryVO.setServerList(data.getServerList());
            discoveryVO.setPluginName(data.getPluginName());
            discoveryVO.setProps(data.getProps());
            return discoveryVO;
        }).orElse(null);
    }
mapToVo.

@param discoveryUpstreamDO discoveryUpstreamDO
@return DiscoveryUpstreamVO
shenyu-admin/src/main/java/org/apache/shenyu/admin/transfer/DiscoveryTransfer.java