获取便携式设备基础数据功能
This commit is contained in:
@@ -6,6 +6,7 @@ import com.njcn.mq.message.AppEventMessage;
|
||||
import com.njcn.zlevent.api.fallback.EventClientFallbackFactory;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
/**
|
||||
* @author xy
|
||||
@@ -16,7 +17,7 @@ public interface EventFeignClient {
|
||||
@PostMapping("/analysis")
|
||||
HttpResult<String> analysis(AppEventMessage appEventMessage);
|
||||
|
||||
@PostMapping("/errorEvent")
|
||||
HttpResult<String> insertErrorEvent(AppEventMessage appEventMessage);
|
||||
@PostMapping("/portableData")
|
||||
HttpResult<String> getPortableData(@RequestBody AppEventMessage appEventMessage);
|
||||
|
||||
}
|
||||
|
||||
@@ -32,10 +32,11 @@ public class EventClientFallbackFactory implements FallbackFactory<EventFeignCli
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<String> insertErrorEvent(AppEventMessage appEventMessage) {
|
||||
log.error("{}异常,降级处理,异常为:{}","异常事件统计",cause.toString());
|
||||
public HttpResult<String> getPortableData(AppEventMessage appEventMessage) {
|
||||
log.error("{}异常,降级处理,异常为:{}","便携式设备数据记录动作",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user