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

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