|
|
@@ -1,7 +1,7 @@
|
|
|
package com.xunmei.system.api.factory;
|
|
|
|
|
|
+import com.xunmei.common.core.web.domain.AjaxResult;
|
|
|
import com.xunmei.system.api.RemoteMessageSendService;
|
|
|
-import com.xunmei.system.api.RemoteRetrievalTaskService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.cloud.openfeign.FallbackFactory;
|
|
|
@@ -16,7 +16,37 @@ public class RemoteMessageSendFallbackFactory implements FallbackFactory<RemoteM
|
|
|
private static final Logger log = LoggerFactory.getLogger(RemoteMessageSendService.class);
|
|
|
@Override
|
|
|
public RemoteMessageSendService create(Throwable cause) {
|
|
|
- log.error("监控调阅服务调用失败:{}", cause.getMessage());
|
|
|
- return null;
|
|
|
+ return new RemoteMessageSendService() {
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public AjaxResult timedTransmission(String source) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public AjaxResult resumptionRemind(String source) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public AjaxResult font(String source) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public AjaxResult centre(String source) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public AjaxResult after(String source) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public AjaxResult allDay(String source) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ };
|
|
|
}
|
|
|
}
|