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

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