2023-10-16 09:14:38 +08:00
|
|
|
package com.engine.recruit.util;
|
|
|
|
|
|
|
|
|
|
import weaver.common.MessageUtil;
|
|
|
|
|
import weaver.general.Util;
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author:dxfeng
|
|
|
|
|
* @createTime: 2023/10/13
|
|
|
|
|
* @version: 1.0
|
|
|
|
|
*/
|
|
|
|
|
public class RecruitMessageUtils {
|
|
|
|
|
public static boolean SendEmail(Map<String, Object> param) {
|
|
|
|
|
String sendTo = Util.null2String(param.get("sendTo"));
|
|
|
|
|
String emailTitle = Util.null2String(param.get("emailTitle"));
|
|
|
|
|
String emailContent = Util.null2String(param.get("emailContent"));
|
2023-10-24 15:26:07 +08:00
|
|
|
return SendEmail(sendTo, emailTitle, emailContent);
|
2023-10-16 09:14:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static boolean sendSMS(Map<String, Object> param) {
|
|
|
|
|
String receiver = Util.null2String(param.get("receiver"));
|
|
|
|
|
String content = Util.null2String(param.get("content"));
|
2023-10-24 15:26:07 +08:00
|
|
|
return sendSMS(receiver, content);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static boolean SendEmail(String sendTo, String emailTitle, String emailContent) {
|
|
|
|
|
return MessageUtil.sendEmail(sendTo, emailTitle, emailContent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static boolean sendSMS(String receiver, String content) {
|
2023-10-16 09:14:38 +08:00
|
|
|
return MessageUtil.sendSMS(receiver, content);
|
|
|
|
|
}
|
|
|
|
|
}
|