package com.usky.vpp;

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

@FeignClient(contextId = "remoteVppTaskService", value = "service-vpp", fallbackFactory = RemoteVppTaskFactory.class)
public interface RemoteVppTaskService {

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

    @GetMapping("/pollUn")
    void pollUn(@RequestParam(value = "tenantId") Integer tenantId);

    @GetMapping("/registerUn")
    void registerUn(@RequestParam(value = "tenantId") Integer tenantId);

    @GetMapping("/intervalDataReportUn")
    void intervalDataReportUn(@RequestParam(value = "tenantId") Integer tenantId);
}
