public DiscoveryUpstreamVO mapToVo(DiscoveryUpstreamDO discoveryUpstreamDO) {
        return Optional.ofNullable(discoveryUpstreamDO).map(data -> {
            DiscoveryUpstreamVO vo = new DiscoveryUpstreamVO();
            vo.setId(data.getId());
            vo.setDiscoveryHandlerId(data.getDiscoveryHandlerId());
            vo.setProtocol(data.getProtocol());
            vo.setUrl(data.getUrl());
            vo.setStatus(data.getStatus());
            vo.setWeight(data.getWeight());
            vo.setProps(data.getProps());
            vo.setStartupTime(String.valueOf(data.getDateCreated().getTime()));
            return vo;
        }).orElse(null);
    }
mapToVo.

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