RemoteNotifyCenterService.java
963 Bytes
package cn.com.glsx.admin.modules.remote;
import cn.com.glsx.notify.api.NotifyCenterFeignClient;
import cn.com.glsx.notify.dto.MailTemplateMessageDTO;
import cn.hutool.json.JSONUtil;
import com.glsx.plat.core.web.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 调用远程邮件发送服务 service
*/
@Slf4j
@Service
public class RemoteNotifyCenterService {
@Autowired
private NotifyCenterFeignClient notifyCenterFeignClient;
/**
* 调用远程邮件发送服务
*
* @param messageDTO 邮件发送服务实体类
*/
public void sendMailOnlyContent(MailTemplateMessageDTO messageDTO) {
log.info("发送邮件参数===" + JSONUtil.toJsonStr(messageDTO));
R r = notifyCenterFeignClient.sendMailOnlyContent(messageDTO);
log.info("发送邮件结果返回===" + JSONUtil.toJsonStr(r));
}
}