|
|
@@ -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,10 @@ 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);
|
|
|
+ @GetMapping("/synchronizeDeviceData")
|
|
|
+ void synchronizeAlarmData(@RequestParam("tenantId") Integer tenantId,
|
|
|
+ @RequestParam("engineeringId") Long engineeringId,
|
|
|
+ @RequestParam("username") String username,
|
|
|
+ @RequestParam("password") String password,
|
|
|
+ @RequestParam("status") String status);
|
|
|
}
|