refactor: 发送通知查询关注人

This commit is contained in:
CaptainB 2021-10-25 11:22:30 +08:00 committed by 刘瑞斌
parent 30b1dd6fb1
commit eca3180c55
1 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.RegExUtils; import org.apache.commons.lang3.RegExUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.time.DateFormatUtils; import org.apache.commons.lang3.time.DateFormatUtils;
import org.springframework.context.annotation.Lazy;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.io.IOException; import java.io.IOException;
@ -38,18 +39,25 @@ public abstract class AbstractNoticeSender implements NoticeSender {
@Resource @Resource
private UserService userService; private UserService userService;
@Resource @Resource
@Lazy
private PerformanceTestService performanceTestService; private PerformanceTestService performanceTestService;
@Resource @Resource
@Lazy
private ApiAutomationService apiAutomationService; private ApiAutomationService apiAutomationService;
@Resource @Resource
@Lazy
private ApiDefinitionService apiDefinitionService; private ApiDefinitionService apiDefinitionService;
@Resource @Resource
@Lazy
private ApiTestCaseService apiTestCaseService; private ApiTestCaseService apiTestCaseService;
@Resource @Resource
@Lazy
private TestCaseService testCaseService; private TestCaseService testCaseService;
@Resource @Resource
@Lazy
private TestPlanService testPlanService; private TestPlanService testPlanService;
@Resource @Resource
@Lazy
private TestCaseReviewService testCaseReviewService; private TestCaseReviewService testCaseReviewService;
protected String getContext(MessageDetail messageDetail, NoticeModel noticeModel) { protected String getContext(MessageDetail messageDetail, NoticeModel noticeModel) {