更新包名
This commit is contained in:
parent
3e0ac9fc2e
commit
ef85b53283
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify;
|
package com.simaek.notify;
|
||||||
|
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify;
|
package com.simaek.notify;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 默认支持的通知类型
|
* 默认支持的通知类型
|
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify;
|
package com.simaek.notify;
|
||||||
|
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify;
|
package com.simaek.notify;
|
||||||
|
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通知器管理器,用于获取获取通知器
|
* 通知器管理器,用于获取获取通知器
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify;
|
package com.simaek.notify;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify;
|
package com.simaek.notify;
|
||||||
|
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通知服务商
|
* 通知服务商
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify;
|
package com.simaek.notify;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通知配置属性管理器,用于统一管理通知配置属性
|
* 通知配置属性管理器,用于统一管理通知配置属性
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify;
|
package com.simaek.notify;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通知类型,通常使用枚举实现,枚举支持的通知类型
|
* 通知类型,通常使用枚举实现,枚举支持的通知类型
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify;
|
package com.simaek.notify;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务商标识,通常使用枚举实现,枚举支持的服务商
|
* 服务商标识,通常使用枚举实现,枚举支持的服务商
|
@ -1,7 +1,7 @@
|
|||||||
package com.cicdi.notify.template;
|
package com.simaek.notify.template;
|
||||||
|
|
||||||
import com.cicdi.notify.DefaultNotifyType;
|
import com.simaek.notify.DefaultNotifyType;
|
||||||
import com.cicdi.notify.NotifyType;
|
import com.simaek.notify.NotifyType;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify.template;
|
package com.simaek.notify.template;
|
||||||
|
|
||||||
import com.cicdi.notify.NotifierProvider;
|
import com.simaek.notify.NotifierProvider;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify.template;
|
package com.simaek.notify.template;
|
||||||
|
|
||||||
import com.cicdi.notify.NotifyType;
|
import com.simaek.notify.NotifyType;
|
||||||
|
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
package com.cicdi.notify.template;
|
package com.simaek.notify.template;
|
||||||
|
|
||||||
import com.cicdi.notify.NotifierProvider;
|
import com.simaek.notify.NotifierProvider;
|
||||||
import com.cicdi.notify.NotifyType;
|
import com.simaek.notify.NotifyType;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
package com.cicdi.notify.template;
|
package com.simaek.notify.template;
|
||||||
|
|
||||||
import com.cicdi.notify.DefaultNotifyType;
|
import com.simaek.notify.DefaultNotifyType;
|
||||||
import com.cicdi.notify.NotifyType;
|
import com.simaek.notify.NotifyType;
|
||||||
import com.cicdi.notify.Provider;
|
import com.simaek.notify.Provider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通知模板服务商
|
* 通知模板服务商
|
@ -1,7 +1,7 @@
|
|||||||
package com.cicdi.notify.util;
|
package com.simaek.notify.util;
|
||||||
|
|
||||||
import com.cicdi.notify.util.script.engine.DynamicScriptEngine;
|
import com.simaek.notify.util.script.engine.DynamicScriptEngine;
|
||||||
import com.cicdi.notify.util.script.engine.spel.SpelParserEngine;
|
import com.simaek.notify.util.script.engine.spel.SpelParserEngine;
|
||||||
import org.apache.commons.beanutils.BeanUtilsBean2;
|
import org.apache.commons.beanutils.BeanUtilsBean2;
|
||||||
import org.apache.commons.codec.digest.DigestUtils;
|
import org.apache.commons.codec.digest.DigestUtils;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify.util;
|
package com.simaek.notify.util;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Yaser Hsueh
|
* @author Yaser Hsueh
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify.util;
|
package com.simaek.notify.util;
|
||||||
|
|
||||||
import org.apache.commons.beanutils.BeanUtilsBean;
|
import org.apache.commons.beanutils.BeanUtilsBean;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify.util.script.engine;
|
package com.simaek.notify.util.script.engine;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify.util.script.engine;
|
package com.simaek.notify.util.script.engine;
|
||||||
|
|
||||||
import javax.script.ScriptException;
|
import javax.script.ScriptException;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify.util.script.engine;
|
package com.simaek.notify.util.script.engine;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify.util.script.engine;
|
package com.simaek.notify.util.script.engine;
|
||||||
|
|
||||||
public class ScriptContext {
|
public class ScriptContext {
|
||||||
private final String id;
|
private final String id;
|
@ -1,8 +1,8 @@
|
|||||||
package com.cicdi.notify.util.script.engine.spel;
|
package com.simaek.notify.util.script.engine.spel;
|
||||||
|
|
||||||
import com.cicdi.notify.util.script.engine.ExecuteResult;
|
import com.simaek.notify.util.script.engine.ExecuteResult;
|
||||||
import com.cicdi.notify.util.script.engine.ListenerSupportEngine;
|
import com.simaek.notify.util.script.engine.ListenerSupportEngine;
|
||||||
import com.cicdi.notify.util.script.engine.ScriptContext;
|
import com.simaek.notify.util.script.engine.ScriptContext;
|
||||||
import org.apache.commons.codec.digest.DigestUtils;
|
import org.apache.commons.codec.digest.DigestUtils;
|
||||||
import org.springframework.expression.Expression;
|
import org.springframework.expression.Expression;
|
||||||
import org.springframework.expression.ExpressionParser;
|
import org.springframework.expression.ExpressionParser;
|
@ -1,7 +1,7 @@
|
|||||||
package com.cicdi.notify.dingtalk;
|
package com.simaek.notify.dingtalk;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
@ -1,12 +1,12 @@
|
|||||||
package com.cicdi.notify.dingtalk;
|
package com.simaek.notify.dingtalk;
|
||||||
|
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.cicdi.notify.DefaultNotifyType;
|
import com.simaek.notify.DefaultNotifyType;
|
||||||
import com.cicdi.notify.Notifier;
|
import com.simaek.notify.Notifier;
|
||||||
import com.cicdi.notify.NotifyType;
|
import com.simaek.notify.NotifyType;
|
||||||
import com.cicdi.notify.Provider;
|
import com.simaek.notify.Provider;
|
||||||
import org.apache.http.NameValuePair;
|
import org.apache.http.NameValuePair;
|
||||||
import org.apache.http.client.methods.CloseableHttpResponse;
|
import org.apache.http.client.methods.CloseableHttpResponse;
|
||||||
import org.apache.http.client.methods.HttpGet;
|
import org.apache.http.client.methods.HttpGet;
|
@ -1,9 +1,9 @@
|
|||||||
package com.cicdi.notify.dingtalk;
|
package com.simaek.notify.dingtalk;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.template.TemplateProperties;
|
import com.simaek.notify.template.TemplateProperties;
|
||||||
import com.cicdi.notify.template.TemplateProvider;
|
import com.simaek.notify.template.TemplateProvider;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify.dingtalk;
|
package com.simaek.notify.dingtalk;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 钉钉通知属性
|
* 钉钉通知属性
|
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify.dingtalk;
|
package com.simaek.notify.dingtalk;
|
||||||
|
|
||||||
import com.cicdi.notify.Provider;
|
import com.simaek.notify.Provider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 钉钉通知提供商
|
* 钉钉通知提供商
|
@ -1,11 +1,11 @@
|
|||||||
package com.cicdi.notify.dingtalk;
|
package com.simaek.notify.dingtalk;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.template.AbstractTemplateManager;
|
import com.simaek.notify.template.AbstractTemplateManager;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
import com.cicdi.notify.template.TemplateManager;
|
import com.simaek.notify.template.TemplateManager;
|
||||||
import com.cicdi.notify.template.TemplateProperties;
|
import com.simaek.notify.template.TemplateProperties;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify.email;
|
package com.simaek.notify.email;
|
||||||
|
|
||||||
import com.cicdi.notify.Provider;
|
import com.simaek.notify.Provider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 邮件通知提供商
|
* 邮件通知提供商
|
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify.email;
|
package com.simaek.notify.email;
|
||||||
|
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify.email;
|
package com.simaek.notify.email;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
@ -1,12 +1,12 @@
|
|||||||
package com.cicdi.notify.email.embedded;
|
package com.simaek.notify.email.embedded;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.email.EmailProvider;
|
import com.simaek.notify.email.EmailProvider;
|
||||||
import com.cicdi.notify.email.EmailTemplate;
|
import com.simaek.notify.email.EmailTemplate;
|
||||||
import com.cicdi.notify.email.EmailTemplateParsed;
|
import com.simaek.notify.email.EmailTemplateParsed;
|
||||||
import com.cicdi.notify.util.ExpressionUtils;
|
import com.simaek.notify.util.ExpressionUtils;
|
||||||
import com.cicdi.notify.util.StringUtils;
|
import com.simaek.notify.util.StringUtils;
|
||||||
import org.apache.http.HttpHeaders;
|
import org.apache.http.HttpHeaders;
|
||||||
import org.apache.http.HttpResponse;
|
import org.apache.http.HttpResponse;
|
||||||
import org.apache.http.client.HttpClient;
|
import org.apache.http.client.HttpClient;
|
@ -1,11 +1,11 @@
|
|||||||
package com.cicdi.notify.email.embedded;
|
package com.simaek.notify.email.embedded;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.email.EmailProvider;
|
import com.simaek.notify.email.EmailProvider;
|
||||||
import com.cicdi.notify.email.EmailTemplate;
|
import com.simaek.notify.email.EmailTemplate;
|
||||||
import com.cicdi.notify.template.TemplateProperties;
|
import com.simaek.notify.template.TemplateProperties;
|
||||||
import com.cicdi.notify.template.TemplateProvider;
|
import com.simaek.notify.template.TemplateProvider;
|
||||||
|
|
||||||
public class DefaultEmailNotifierProvider implements NotifierProvider, TemplateProvider {
|
public class DefaultEmailNotifierProvider implements NotifierProvider, TemplateProvider {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify.email.embedded;
|
package com.simaek.notify.email.embedded;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
@ -1,12 +1,12 @@
|
|||||||
package com.cicdi.notify.email;
|
package com.simaek.notify.email;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.template.AbstractTemplateManager;
|
import com.simaek.notify.template.AbstractTemplateManager;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
import com.cicdi.notify.template.TemplateManager;
|
import com.simaek.notify.template.TemplateManager;
|
||||||
import com.cicdi.notify.template.TemplateProperties;
|
import com.simaek.notify.template.TemplateProperties;
|
||||||
import com.cicdi.notify.email.embedded.DefaultEmailNotifierProvider;
|
import com.simaek.notify.email.embedded.DefaultEmailNotifierProvider;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify.sms;
|
package com.simaek.notify.sms;
|
||||||
|
|
||||||
import com.cicdi.notify.Provider;
|
import com.simaek.notify.Provider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author xueye
|
* @author xueye
|
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify.sms;
|
package com.simaek.notify.sms;
|
||||||
|
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify.sms.aliyun;
|
package com.simaek.notify.sms.aliyun;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
@ -9,8 +9,8 @@ import com.aliyuncs.IAcsClient;
|
|||||||
import com.aliyuncs.http.MethodType;
|
import com.aliyuncs.http.MethodType;
|
||||||
import com.aliyuncs.profile.DefaultProfile;
|
import com.aliyuncs.profile.DefaultProfile;
|
||||||
import com.aliyuncs.profile.IClientProfile;
|
import com.aliyuncs.profile.IClientProfile;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.sms.SmsProvider;
|
import com.simaek.notify.sms.SmsProvider;
|
||||||
|
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
@ -1,12 +1,11 @@
|
|||||||
package com.cicdi.notify.sms.aliyun;
|
package com.simaek.notify.sms.aliyun;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.sms.SmsProvider;
|
import com.simaek.notify.sms.SmsProvider;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
import com.cicdi.notify.template.TemplateManager;
|
import com.simaek.notify.template.TemplateProperties;
|
||||||
import com.cicdi.notify.template.TemplateProperties;
|
import com.simaek.notify.template.TemplateProvider;
|
||||||
import com.cicdi.notify.template.TemplateProvider;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 阿里云短信通知服务
|
* 阿里云短信通知服务
|
@ -1,7 +1,7 @@
|
|||||||
package com.cicdi.notify.sms.aliyun;
|
package com.simaek.notify.sms.aliyun;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
@ -1,10 +1,9 @@
|
|||||||
package com.cicdi.notify.sms.telecom;
|
package com.simaek.notify.sms.telecom;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.sms.SmsProvider;
|
import com.simaek.notify.sms.SmsProvider;
|
||||||
import com.cicdi.notify.template.TemplateManager;
|
import com.simaek.notify.util.ExpressionUtils;
|
||||||
import com.cicdi.notify.util.ExpressionUtils;
|
|
||||||
import org.apache.http.client.methods.CloseableHttpResponse;
|
import org.apache.http.client.methods.CloseableHttpResponse;
|
||||||
import org.apache.http.client.methods.HttpPost;
|
import org.apache.http.client.methods.HttpPost;
|
||||||
import org.apache.http.client.utils.URIBuilder;
|
import org.apache.http.client.utils.URIBuilder;
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify.sms.telecom;
|
package com.simaek.notify.sms.telecom;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 云信通短信通知平台配置信息
|
* 云信通短信通知平台配置信息
|
@ -1,11 +1,11 @@
|
|||||||
package com.cicdi.notify.sms.telecom;
|
package com.simaek.notify.sms.telecom;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.sms.SmsProvider;
|
import com.simaek.notify.sms.SmsProvider;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
import com.cicdi.notify.template.TemplateProperties;
|
import com.simaek.notify.template.TemplateProperties;
|
||||||
import com.cicdi.notify.template.TemplateProvider;
|
import com.simaek.notify.template.TemplateProvider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author xueye
|
* @author xueye
|
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify.sms.telecom;
|
package com.simaek.notify.sms.telecom;
|
||||||
|
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author xueye
|
* @author xueye
|
@ -1,11 +1,11 @@
|
|||||||
package com.cicdi.notify.sms;
|
package com.simaek.notify.sms;
|
||||||
|
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.sms.aliyun.AliyunSmsNotifierProvider;
|
import com.simaek.notify.sms.aliyun.AliyunSmsNotifierProvider;
|
||||||
import com.cicdi.notify.template.AbstractTemplateManager;
|
import com.simaek.notify.template.AbstractTemplateManager;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
import com.cicdi.notify.template.TemplateManager;
|
import com.simaek.notify.template.TemplateManager;
|
||||||
import com.cicdi.notify.template.TemplateProperties;
|
import com.simaek.notify.template.TemplateProperties;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
@ -1,13 +1,13 @@
|
|||||||
package com.cicdi.notify.sms;
|
package com.simaek.notify.sms;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.sms.telecom.TelecomSmsNotifierProvider;
|
import com.simaek.notify.sms.telecom.TelecomSmsNotifierProvider;
|
||||||
import com.cicdi.notify.sms.telecom.TelecomSmsTemplate;
|
import com.simaek.notify.sms.telecom.TelecomSmsTemplate;
|
||||||
import com.cicdi.notify.template.AbstractTemplateManager;
|
import com.simaek.notify.template.AbstractTemplateManager;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
import com.cicdi.notify.template.TemplateManager;
|
import com.simaek.notify.template.TemplateManager;
|
||||||
import com.cicdi.notify.template.TemplateProperties;
|
import com.simaek.notify.template.TemplateProperties;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify.wechat;
|
package com.simaek.notify.wechat;
|
||||||
|
|
||||||
import com.cicdi.notify.Provider;
|
import com.simaek.notify.Provider;
|
||||||
|
|
||||||
public enum WechatProvider implements Provider {
|
public enum WechatProvider implements Provider {
|
||||||
corpMessage("微信企业消息通知"),
|
corpMessage("微信企业消息通知"),
|
@ -1,12 +1,12 @@
|
|||||||
package com.cicdi.notify.wechat.corp;
|
package com.simaek.notify.wechat.corp;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.cicdi.notify.DefaultNotifyType;
|
import com.simaek.notify.DefaultNotifyType;
|
||||||
import com.cicdi.notify.Notifier;
|
import com.simaek.notify.Notifier;
|
||||||
import com.cicdi.notify.NotifyType;
|
import com.simaek.notify.NotifyType;
|
||||||
import com.cicdi.notify.Provider;
|
import com.simaek.notify.Provider;
|
||||||
import com.cicdi.notify.wechat.WechatProvider;
|
import com.simaek.notify.wechat.WechatProvider;
|
||||||
import org.apache.http.NameValuePair;
|
import org.apache.http.NameValuePair;
|
||||||
import org.apache.http.client.methods.CloseableHttpResponse;
|
import org.apache.http.client.methods.CloseableHttpResponse;
|
||||||
import org.apache.http.client.methods.HttpGet;
|
import org.apache.http.client.methods.HttpGet;
|
@ -1,11 +1,11 @@
|
|||||||
package com.cicdi.notify.wechat.corp;
|
package com.simaek.notify.wechat.corp;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
import com.cicdi.notify.template.TemplateProperties;
|
import com.simaek.notify.template.TemplateProperties;
|
||||||
import com.cicdi.notify.template.TemplateProvider;
|
import com.simaek.notify.template.TemplateProvider;
|
||||||
import com.cicdi.notify.wechat.WechatProvider;
|
import com.simaek.notify.wechat.WechatProvider;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.cicdi.notify.wechat.corp;
|
package com.simaek.notify.wechat.corp;
|
||||||
|
|
||||||
public class WechatCorpProperties {
|
public class WechatCorpProperties {
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
package com.cicdi.notify.wechat.corp;
|
package com.simaek.notify.wechat.corp;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
import com.cicdi.notify.util.StringUtils;
|
import com.simaek.notify.util.StringUtils;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
@ -1,12 +1,9 @@
|
|||||||
package com.cicdi.notify.wechat.subscription;
|
package com.simaek.notify.wechat.subscription;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.wechat.WechatProvider;
|
import com.simaek.notify.wechat.WechatProvider;
|
||||||
import org.apache.http.Consts;
|
|
||||||
import org.apache.http.Header;
|
|
||||||
import org.apache.http.HttpHeaders;
|
|
||||||
import org.apache.http.client.methods.CloseableHttpResponse;
|
import org.apache.http.client.methods.CloseableHttpResponse;
|
||||||
import org.apache.http.client.methods.HttpGet;
|
import org.apache.http.client.methods.HttpGet;
|
||||||
import org.apache.http.client.methods.HttpPost;
|
import org.apache.http.client.methods.HttpPost;
|
||||||
@ -15,14 +12,11 @@ import org.apache.http.entity.ContentType;
|
|||||||
import org.apache.http.entity.StringEntity;
|
import org.apache.http.entity.StringEntity;
|
||||||
import org.apache.http.impl.client.CloseableHttpClient;
|
import org.apache.http.impl.client.CloseableHttpClient;
|
||||||
import org.apache.http.impl.client.HttpClientBuilder;
|
import org.apache.http.impl.client.HttpClientBuilder;
|
||||||
import org.apache.http.message.BasicHeader;
|
|
||||||
import org.apache.http.util.EntityUtils;
|
import org.apache.http.util.EntityUtils;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.nio.charset.Charset;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
@ -1,13 +1,11 @@
|
|||||||
package com.cicdi.notify.wechat.subscription;
|
package com.simaek.notify.wechat.subscription;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
import com.cicdi.notify.template.TemplateProperties;
|
import com.simaek.notify.template.TemplateProperties;
|
||||||
import com.cicdi.notify.template.TemplateProvider;
|
import com.simaek.notify.template.TemplateProvider;
|
||||||
import com.cicdi.notify.wechat.WechatProvider;
|
import com.simaek.notify.wechat.WechatProvider;
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 微信公众号通知器提供商
|
* 微信公众号通知器提供商
|
@ -1,6 +1,6 @@
|
|||||||
package com.cicdi.notify.wechat.subscription;
|
package com.simaek.notify.wechat.subscription;
|
||||||
|
|
||||||
import com.cicdi.notify.NotifierProperties;
|
import com.simaek.notify.NotifierProperties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 微信公众号通知器配置信息
|
* 微信公众号通知器配置信息
|
@ -1,7 +1,7 @@
|
|||||||
package com.cicdi.notify.wechat.subscription;
|
package com.simaek.notify.wechat.subscription;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
@ -1,14 +1,13 @@
|
|||||||
package com.cicdi.notify.wechat;
|
package com.simaek.notify.wechat;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.template.AbstractTemplateManager;
|
import com.simaek.notify.template.AbstractTemplateManager;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
import com.cicdi.notify.template.TemplateManager;
|
import com.simaek.notify.template.TemplateManager;
|
||||||
import com.cicdi.notify.template.TemplateProperties;
|
import com.simaek.notify.template.TemplateProperties;
|
||||||
import com.cicdi.notify.wechat.corp.WechatCorpNotifierProvider;
|
import com.simaek.notify.wechat.subscription.WechatSubscriptionNotifierProvider;
|
||||||
import com.cicdi.notify.wechat.subscription.WechatSubscriptionNotifierProvider;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
@ -1,13 +1,13 @@
|
|||||||
package com.cicdi.notify.wechat;
|
package com.simaek.notify.wechat;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.cicdi.notify.*;
|
import com.simaek.notify.*;
|
||||||
import com.cicdi.notify.template.AbstractTemplateManager;
|
import com.simaek.notify.template.AbstractTemplateManager;
|
||||||
import com.cicdi.notify.template.Template;
|
import com.simaek.notify.template.Template;
|
||||||
import com.cicdi.notify.template.TemplateManager;
|
import com.simaek.notify.template.TemplateManager;
|
||||||
import com.cicdi.notify.template.TemplateProperties;
|
import com.simaek.notify.template.TemplateProperties;
|
||||||
import com.cicdi.notify.wechat.corp.WechatCorpNotifierProvider;
|
import com.simaek.notify.wechat.corp.WechatCorpNotifierProvider;
|
||||||
import com.cicdi.notify.wechat.corp.WechatCorpTemplate;
|
import com.simaek.notify.wechat.corp.WechatCorpTemplate;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
Loading…
Reference in New Issue
Block a user