提交 2fdfdb16 编写于 作者: zhouweidong's avatar zhouweidong

钉钉、微信、阿里消息集成

上级 b49932c5
...@@ -11,7 +11,6 @@ import org.springframework.web.client.RestTemplate; ...@@ -11,7 +11,6 @@ import org.springframework.web.client.RestTemplate;
public class RedisConfig { public class RedisConfig {
@Bean @Bean
// @LoadBalanced
@ConditionalOnMissingBean @ConditionalOnMissingBean
public RestTemplate restTemplate() { public RestTemplate restTemplate() {
return new RestTemplate(); return new RestTemplate();
......
...@@ -24,6 +24,7 @@ import com.dingtalk.api.response.OapiMessageCorpconversationAsyncsendV2Response; ...@@ -24,6 +24,7 @@ import com.dingtalk.api.response.OapiMessageCorpconversationAsyncsendV2Response;
import lombok.SneakyThrows; import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.http.HttpEntity; import org.springframework.http.HttpEntity;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -74,12 +75,16 @@ public class NotifyCoreService { ...@@ -74,12 +75,16 @@ public class NotifyCoreService {
} }
@Autowired @Autowired
@Lazy
RestTemplate restTemplate; RestTemplate restTemplate;
@Autowired @Autowired
@Lazy
IMsgOpenAccessService smsConfigService; IMsgOpenAccessService smsConfigService;
@Autowired @Autowired
@Lazy
IMsgTemplateService templateService; IMsgTemplateService templateService;
@Autowired @Autowired
@Lazy
IMsgUserAccountService userAccountService; IMsgUserAccountService userAccountService;
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册