package com.usky.cdi;

import com.usky.cdi.factory.RemotecdiTaskFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "RemotecdiTaskService", value = "service-cdi", fallbackFactory = RemotecdiTaskFactory.class)
public interface RemotecdiTaskService {
    @GetMapping("/synchronizeDeviceData")
    void synchronizeDeviceData(@RequestParam(value = "tenantId") Integer tenantId,
                               @RequestParam(value = "engineeringId") Long engineeringId,
                               @RequestParam(value = "username") String username,
                               @RequestParam(value = "password") String password);

    @GetMapping("/allData")
    void allData(@RequestParam("engineeringId") Long engineeringId,
                               @RequestParam("username") String username,
                               @RequestParam("password") String password);
}
