package com.usky.ems;


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

@FeignClient(contextId = "remoteEmsTaskService", value = "service-ems" , fallbackFactory = RemoteEmsTaskFactory.class)
public interface RemoteEmsTaskService {

    @GetMapping("/sendEnergyData")
    void sendEnergyData();

    @GetMapping("/sendEnergyHeartbeat")
    void sendEnergyHeartbeat();
}
