public AlertReceiverDTO mapToAlertReceiverDTO(final AlertReceiverDO alertReceiverDO) {
        return Optional.ofNullable(alertReceiverDO)
                .map(v -> {
                    AlertReceiverDTO alertReceiverDTO = new AlertReceiverDTO();
                    alertReceiverDTO.setId(alertReceiverDO.getId());
                    alertReceiverDTO.setName(alertReceiverDO.getName());
                    alertReceiverDTO.setAccessToken(alertReceiverDO.getAccessToken());
                    alertReceiverDTO.setAgentId(alertReceiverDO.getAgentId());
                    alertReceiverDTO.setCorpId(alertReceiverDO.getCorpId());
                    alertReceiverDTO.setAppSecret(alertReceiverDO.getAppSecret());
                    alertReceiverDTO.setDiscordBotToken(alertReceiverDO.getDiscordBotToken());
                    alertReceiverDTO.setDiscordChannelId(alertReceiverDO.getDiscordChannelId());
                    alertReceiverDTO.setEmail(alertReceiverDO.getEmail());
                    alertReceiverDTO.setWechatId(alertReceiverDO.getWechatId());
                    alertReceiverDTO.setEnable(alertReceiverDO.isEnable());
                    alertReceiverDTO.setHookUrl(alertReceiverDO.getHookUrl());
                    alertReceiverDTO.setType(alertReceiverDO.getType());
                    alertReceiverDTO.setLabels(alertReceiverDO.getLabels());
                    alertReceiverDTO.setLevels(alertReceiverDO.getLevels());
                    alertReceiverDTO.setTgUserId(alertReceiverDO.getTgUserId());
                    alertReceiverDTO.setTgBotToken(alertReceiverDO.getTgBotToken());
                    alertReceiverDTO.setSmnSk(alertReceiverDO.getSmnSk());
                    alertReceiverDTO.setSmnAk(alertReceiverDO.getSmnAk());
                    alertReceiverDTO.setSmnProjectId(alertReceiverDO.getSmnProjectId());
                    alertReceiverDTO.setSmnTopicUrn(alertReceiverDO.getSmnTopicUrn());
                    alertReceiverDTO.setSmnRegion(alertReceiverDO.getSmnRegion());
                    alertReceiverDTO.setPhone(alertReceiverDO.getPhone());
                    alertReceiverDTO.setMatchAll(alertReceiverDO.isMatchAll());
                    alertReceiverDTO.setSlackWebHookUrl(alertReceiverDO.getSlackWebHookUrl());
                    alertReceiverDTO.setDateCreated(alertReceiverDO.getDateCreated());
                    alertReceiverDTO.setDateUpdated(alertReceiverDO.getDateUpdated());
                    return alertReceiverDTO;
                })
                .orElse(null);
    }
Map to alert receiver dto.

@param alertReceiverDO the alert receiver do
@return the alert receiver do
shenyu-admin/src/main/java/org/apache/shenyu/admin/transfer/AlertTransfer.java