@NotNull
    private static DiscoveryDO buildDiscovery(final ProxySelectorAddDTO proxySelectorAddDTO, final Timestamp currentTime, final String discoveryId) {
        return DiscoveryDO.builder()
                .id(discoveryId)
                .name(proxySelectorAddDTO.getName())
                .type(proxySelectorAddDTO.getDiscovery().getDiscoveryType())
                .serverList(proxySelectorAddDTO.getDiscovery().getServerList())
                .pluginName(proxySelectorAddDTO.getPluginName())
                .namespaceId(proxySelectorAddDTO.getNamespaceId())
                .level(DiscoveryLevel.SELECTOR.getCode())
                .dateCreated(currentTime)
                .dateUpdated(currentTime)
                .props(proxySelectorAddDTO.getDiscovery().getProps())
                .build();
    }
add proxy selector.

@param proxySelectorAddDTO {@link ProxySelectorAddDTO}
@return insert data count
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/ProxySelectorServiceImpl.java