|
|
@@ -2,6 +2,8 @@ package com.usky.cdi;
|
|
|
|
|
|
import com.usky.cdi.factory.AlarmDataSyncTaskFactory;
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
@@ -11,5 +13,19 @@ import org.springframework.cloud.openfeign.FeignClient;
|
|
|
*/
|
|
|
@FeignClient(contextId = "AlarmDataSyncTaskService", value = "service-cdi", fallbackFactory = AlarmDataSyncTaskFactory.class)
|
|
|
public interface AlarmDataSyncTaskService {
|
|
|
- void synchronizeAlarmData(Integer tenantId, Long engineeringId, String username, String password, String status);
|
|
|
+ /**
|
|
|
+ * 同步告警数据
|
|
|
+ *
|
|
|
+ * @param tenantId 租户ID
|
|
|
+ * @param engineeringId 工程ID
|
|
|
+ * @param username mqtt用户名
|
|
|
+ * @param password mqtt密码
|
|
|
+ * @param status peacetime:平时 wartime:战时
|
|
|
+ */
|
|
|
+ @GetMapping("/synchronizeAlarmData")
|
|
|
+ void synchronizeAlarmData(@RequestParam Integer tenantId,
|
|
|
+ @RequestParam Long engineeringId,
|
|
|
+ @RequestParam String username,
|
|
|
+ @RequestParam String password,
|
|
|
+ @RequestParam String status);
|
|
|
}
|