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

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

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