Skip to content

Commit

Permalink
feat: dinger 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AnswerAIL committed Dec 24, 2020
1 parent d289759 commit 1255652
Show file tree
Hide file tree
Showing 150 changed files with 483 additions and 492 deletions.
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
![Dinger](https://gitee.com/jaemon/docs/raw/master/dinger.png) ![GitHub license](https://img.shields.io/github/license/AnswerAIL/dingtalk-spring-boot-starter)



# Dinger(叮鸽) ![GitHub license](https://img.shields.io/github/license/AnswerAIL/dingtalk-spring-boot-starter)
[![Maven Central](https://img.shields.io/maven-central/v/com.github.answerail/dingtalk-spring-boot-starter)](https://mvnrepository.com/artifact/com.github.answerail/dingtalk-spring-boot-starter)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/AnswerAIL/dingtalk-spring-boot-starter)](https://github.com/AnswerAIL/dingtalk-spring-boot-starter/releases)
[![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/AnswerAIL/dingtalk-spring-boot-starter)](https://github.com/AnswerAIL/dingtalk-spring-boot-starter/tags)


[![GitHub stars](https://img.shields.io/github/stars/AnswerAIL/dingtalk-spring-boot-starter.svg?style=social)](https://github.com/AnswerAIL/dingtalk-spring-boot-starter)
![GitHub all releases](https://img.shields.io/github/downloads/AnswerAIL/dingtalk-spring-boot-starter/total?style=social)
[![Gitee stars](https://gitee.com/jaemon/dingtalk-spring-boot-starter/badge/star.svg?theme=dark)](https://gitee.com/jaemon/dingtalk-spring-boot-starter)


[![GitHub issues](https://img.shields.io/github/issues/AnswerAIL/dingtalk-spring-boot-starter)](https://github.com/AnswerAIL/dingtalk-spring-boot-starter/issues?q=is%3Aopen+is%3Aissue)
[![GitHub closed issues](https://img.shields.io/github/issues-closed/AnswerAIL/dingtalk-spring-boot-starter)](https://github.com/AnswerAIL/dingtalk-spring-boot-starter/issues?q=is%3Aissue+is%3Aclosed)


[![Read the Docs](https://img.shields.io/readthedocs/pip)](https://github.com/AnswerAIL/dingtalk-spring-boot-starter/wiki)

![JDK](https://img.shields.io/badge/JDK-%3E=1.8-green?logo=appveyor)

 

Expand Down
Binary file removed img/dinger.png
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.dingerframework.utils.ConfigTools</mainClass>
<mainClass>com.github.jaemon.dinger.utils.ConfigTools</mainClass>
</transformer>
</transformers>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework;
package com.github.jaemon.dinger;

import com.dingerframework.core.DingerHelper;
import com.dingerframework.core.entity.DingerProperties;
import com.dingerframework.core.entity.enums.MessageSubType;
import com.dingerframework.exception.DingerException;
import com.github.jaemon.dinger.core.DingerHelper;
import com.github.jaemon.dinger.core.entity.DingerProperties;
import com.github.jaemon.dinger.core.entity.enums.MessageSubType;
import com.github.jaemon.dinger.exception.DingerException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.dingerframework.entity.DingerCallback;
import com.dingerframework.support.CustomMessage;
import com.github.jaemon.dinger.entity.DingerCallback;
import com.github.jaemon.dinger.support.CustomMessage;

/**
* AbstractDingTalkSender
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework;
package com.github.jaemon.dinger;

import com.dingerframework.core.entity.enums.MessageSubType;
import com.dingerframework.sign.DingerSignAlgorithm;
import com.dingerframework.support.DingerExceptionCallback;
import com.dingerframework.support.CustomMessage;
import com.dingerframework.support.DingerAsyncCallback;
import com.dingerframework.support.DingerIdGenerator;
import com.dingerframework.support.client.DingerHttpClient;
import com.github.jaemon.dinger.core.entity.enums.MessageSubType;
import com.github.jaemon.dinger.sign.DingerSignAlgorithm;
import com.github.jaemon.dinger.support.DingerExceptionCallback;
import com.github.jaemon.dinger.support.CustomMessage;
import com.github.jaemon.dinger.support.DingerAsyncCallback;
import com.github.jaemon.dinger.support.DingerIdGenerator;
import com.github.jaemon.dinger.support.client.DingerHttpClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import java.util.concurrent.Executor;

import static com.dingerframework.constant.DingerConstant.*;
import static com.github.jaemon.dinger.constant.DingerConstant.*;

/**
* DingTalk Manager Builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework;
package com.github.jaemon.dinger;

import com.dingerframework.entity.DingerResult;
import com.dingerframework.entity.SignBase;
import com.dingerframework.support.client.MediaTypeEnum;
import com.github.jaemon.dinger.entity.DingerResult;
import com.github.jaemon.dinger.entity.SignBase;
import com.github.jaemon.dinger.support.client.MediaTypeEnum;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.dingerframework.core.DingerConfig;
import com.dingerframework.core.entity.DingerProperties;
import com.dingerframework.core.entity.enums.DingerType;
import com.dingerframework.core.entity.enums.MessageSubType;
import com.dingerframework.entity.enums.ResultCode;
import com.dingerframework.core.entity.MsgType;
import com.dingerframework.exception.AsyncCallException;
import com.dingerframework.exception.SendMsgException;
import com.dingerframework.support.CustomMessage;
import com.dingerframework.utils.DingerUtils;
import com.github.jaemon.dinger.core.DingerConfig;
import com.github.jaemon.dinger.core.entity.DingerProperties;
import com.github.jaemon.dinger.core.entity.enums.DingerType;
import com.github.jaemon.dinger.core.entity.enums.MessageSubType;
import com.github.jaemon.dinger.entity.enums.ResultCode;
import com.github.jaemon.dinger.core.entity.MsgType;
import com.github.jaemon.dinger.exception.AsyncCallException;
import com.github.jaemon.dinger.exception.SendMsgException;
import com.github.jaemon.dinger.support.CustomMessage;
import com.github.jaemon.dinger.utils.DingerUtils;
import org.springframework.beans.BeanUtils;

import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework;
package com.github.jaemon.dinger;

import com.dingerframework.core.entity.MsgType;
import com.dingerframework.core.entity.enums.DingerType;
import com.dingerframework.core.entity.enums.MessageSubType;
import com.dingerframework.entity.DingerResult;
import com.github.jaemon.dinger.core.entity.MsgType;
import com.github.jaemon.dinger.core.entity.enums.DingerType;
import com.github.jaemon.dinger.core.entity.enums.MessageSubType;
import com.github.jaemon.dinger.entity.DingerResult;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework.config;
package com.github.jaemon.dinger.config;

import com.dingerframework.sign.DingTalkSignAlgorithm;
import com.dingerframework.sign.DingerSignAlgorithm;
import com.github.jaemon.dinger.sign.DingTalkSignAlgorithm;
import com.github.jaemon.dinger.sign.DingerSignAlgorithm;
import com.dingerframework.support.*;
import com.dingerframework.multi.MultiDingerAlgorithmInjectRegister;
import com.dingerframework.support.client.DingerHttpClient;
import com.dingerframework.support.client.DingerHttpTemplate;
import com.github.jaemon.dinger.multi.MultiDingerAlgorithmInjectRegister;
import com.github.jaemon.dinger.support.*;
import com.github.jaemon.dinger.support.client.DingerHttpClient;
import com.github.jaemon.dinger.support.client.DingerHttpTemplate;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static com.dingerframework.constant.DingerConstant.MARKDOWN_MESSAGE;
import static com.dingerframework.constant.DingerConstant.TEXT_MESSAGE;
import static com.github.jaemon.dinger.constant.DingerConstant.MARKDOWN_MESSAGE;
import static com.github.jaemon.dinger.constant.DingerConstant.TEXT_MESSAGE;

/**
* 实例化bean配置
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework.config;
package com.github.jaemon.dinger.config;

import com.dingerframework.DingerManagerBuilder;
import com.dingerframework.DingerRobot;
import com.dingerframework.core.DingerConfigurerAdapter;
import com.dingerframework.core.entity.DingerProperties;
import com.dingerframework.exception.ConfigurationException;
import com.github.jaemon.dinger.DingerManagerBuilder;
import com.github.jaemon.dinger.DingerRobot;
import com.github.jaemon.dinger.core.DingerConfigurerAdapter;
import com.github.jaemon.dinger.core.entity.DingerProperties;
import com.github.jaemon.dinger.exception.ConfigurationException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework.config;
package com.github.jaemon.dinger.config;

import com.dingerframework.constant.DingerConstant;
import com.github.jaemon.dinger.constant.DingerConstant;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
Expand All @@ -29,7 +29,7 @@
import java.time.Duration;
import java.time.temporal.ChronoUnit;

import static com.dingerframework.constant.DingerConstant.DINGER_PROPERTIES_PREFIX;
import static com.github.jaemon.dinger.constant.DingerConstant.DINGER_PROPERTIES_PREFIX;

/**
* Dinger默认Http客户端配置
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework.config;
package com.github.jaemon.dinger.config;

import com.dingerframework.DingerRobot;
import com.dingerframework.constant.DingerConstant;
import com.dingerframework.entity.DkThreadPoolProperties;
import com.github.jaemon.dinger.DingerRobot;
import com.github.jaemon.dinger.constant.DingerConstant;
import com.github.jaemon.dinger.entity.DkThreadPoolProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework.constant;
package com.github.jaemon.dinger.constant;

/**
* 常量类
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework.core;
package com.github.jaemon.dinger.core;

import com.dingerframework.constant.DingerConstant;
import com.dingerframework.core.annatations.DingerScan;
import com.dingerframework.core.entity.enums.DingerDefinitionType;
import com.dingerframework.core.entity.enums.DingerType;
import com.dingerframework.entity.enums.ExceptionEnum;
import com.dingerframework.exception.DingerException;
import com.dingerframework.listeners.ApplicationEventTimeTable;
import com.dingerframework.listeners.DingerListenersProperty;
import com.dingerframework.utils.PackageUtils;
import com.dingerframework.exception.DingerConfigRepeatedException;
import com.dingerframework.exception.DingerScanRepeatedException;
import com.github.jaemon.dinger.constant.DingerConstant;
import com.github.jaemon.dinger.core.annatations.DingerScan;
import com.github.jaemon.dinger.core.entity.enums.DingerDefinitionType;
import com.github.jaemon.dinger.core.entity.enums.DingerType;
import com.github.jaemon.dinger.entity.enums.ExceptionEnum;
import com.github.jaemon.dinger.exception.DingerException;
import com.github.jaemon.dinger.listeners.ApplicationEventTimeTable;
import com.github.jaemon.dinger.listeners.DingerListenersProperty;
import com.github.jaemon.dinger.utils.PackageUtils;
import com.github.jaemon.dinger.exception.DingerConfigRepeatedException;
import com.github.jaemon.dinger.exception.DingerScanRepeatedException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.io.Resource;
Expand All @@ -35,7 +35,7 @@
import java.util.*;
import java.util.List;

import static com.dingerframework.core.AbstractDingerDefinitionResolver.Container.INSTANCE;
import static com.github.jaemon.dinger.core.AbstractDingerDefinitionResolver.Container.INSTANCE;

/**
* AbstractDingerDefinitionResolver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework.core;
package com.github.jaemon.dinger.core;

import com.dingerframework.core.entity.enums.DingerType;
import com.dingerframework.core.entity.enums.MessageSubType;
import com.dingerframework.core.entity.MsgType;
import com.dingerframework.core.entity.enums.MessageMainType;
import com.github.jaemon.dinger.core.entity.enums.DingerType;
import com.github.jaemon.dinger.core.entity.enums.MessageSubType;
import com.github.jaemon.dinger.core.entity.MsgType;
import com.github.jaemon.dinger.core.entity.enums.MessageMainType;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework.core;
package com.github.jaemon.dinger.core;

import com.dingerframework.core.entity.enums.DingerType;
import com.dingerframework.utils.ConfigTools;
import com.dingerframework.utils.DingerUtils;
import com.github.jaemon.dinger.core.entity.enums.DingerType;
import com.github.jaemon.dinger.utils.ConfigTools;
import com.github.jaemon.dinger.utils.DingerUtils;

/**
* DingerConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework.core;
package com.github.jaemon.dinger.core;

import com.dingerframework.DingerManagerBuilder;
import com.github.jaemon.dinger.DingerManagerBuilder;

/**
* DingTalk Configurer Adapter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework.core;
package com.github.jaemon.dinger.core;

import com.dingerframework.core.entity.MsgType;
import com.dingerframework.core.entity.enums.DingerType;
import com.dingerframework.core.entity.enums.MessageMainType;
import com.dingerframework.core.entity.enums.MessageSubType;
import com.github.jaemon.dinger.core.entity.MsgType;
import com.github.jaemon.dinger.core.entity.enums.DingerType;
import com.github.jaemon.dinger.core.entity.enums.MessageMainType;
import com.github.jaemon.dinger.core.entity.enums.MessageSubType;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework.core;
package com.github.jaemon.dinger.core;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework.core;
package com.github.jaemon.dinger.core;

/**
* DingerDefinitionGeneratorContext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.dingerframework.core;
package com.github.jaemon.dinger.core;

import com.dingerframework.exception.DingerException;
import com.github.jaemon.dinger.exception.DingerException;

import java.util.HashMap;
import java.util.Map;

import static com.dingerframework.entity.enums.ExceptionEnum.DINGERDEFINITION_ERROR;
import static com.github.jaemon.dinger.entity.enums.ExceptionEnum.DINGERDEFINITION_ERROR;

/**
* Dinger Definition工厂类
Expand Down
Loading

0 comments on commit 1255652

Please sign in to comment.