public DiscoveryRelVO mapToVo(DiscoveryRelDO discoveryRelDO) {
        return Optional.ofNullable(discoveryRelDO).map(data -> {
            DiscoveryRelVO discoveryRelVO = new DiscoveryRelVO();
            discoveryRelVO.setId(data.getId());
            discoveryRelVO.setPluginName(data.getPluginName());
            discoveryRelVO.setDiscoveryHandlerId(data.getDiscoveryHandlerId());
            discoveryRelVO.setSelectorId(data.getSelectorId());
            discoveryRelVO.setProxySelectorId(data.getProxySelectorId());
            return discoveryRelVO;
        }).orElse(null);
    }
mapToVo.

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