|
|
@@ -1,25 +1,25 @@
|
|
|
-package nju.seec.helper.api.dataanalysis;
|
|
|
-
|
|
|
-import nju.seec.helper.util.RestRequestUtil;
|
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.scheduling.annotation.Async;
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
-
|
|
|
-/**
|
|
|
- * @author cst
|
|
|
- */
|
|
|
-@Component
|
|
|
-public class EventApi {
|
|
|
- @Value("${data-analysis.eventReportUrl}")
|
|
|
- private String eventReportUrl;
|
|
|
- private final RestRequestUtil restRequestUtil;
|
|
|
-
|
|
|
- public EventApi(RestRequestUtil restRequestUtil) {
|
|
|
- this.restRequestUtil = restRequestUtil;
|
|
|
- }
|
|
|
-
|
|
|
- @Async
|
|
|
- public void reportEvent(EventDTO eventDTO) {
|
|
|
- restRequestUtil.sendPostRequest(eventReportUrl, eventDTO, Boolean.class);
|
|
|
- }
|
|
|
-}
|
|
|
+//package nju.seec.helper.api.dataanalysis;
|
|
|
+//
|
|
|
+//import nju.seec.helper.util.RestRequestUtil;
|
|
|
+//import org.springframework.beans.factory.annotation.Value;
|
|
|
+//import org.springframework.scheduling.annotation.Async;
|
|
|
+//import org.springframework.stereotype.Component;
|
|
|
+//
|
|
|
+///**
|
|
|
+// * @author cst
|
|
|
+// */
|
|
|
+//@Component
|
|
|
+//public class EventApi {
|
|
|
+// @Value("${data-analysis.eventReportUrl}")
|
|
|
+// private String eventReportUrl;
|
|
|
+// private final RestRequestUtil restRequestUtil;
|
|
|
+//
|
|
|
+// public EventApi(RestRequestUtil restRequestUtil) {
|
|
|
+// this.restRequestUtil = restRequestUtil;
|
|
|
+// }
|
|
|
+//
|
|
|
+// @Async
|
|
|
+// public void reportEvent(EventDTO eventDTO) {
|
|
|
+// restRequestUtil.sendPostRequest(eventReportUrl, eventDTO, Boolean.class);
|
|
|
+// }
|
|
|
+//}
|