package com.inspect.patrol.feignservice;

import com.inspect.base.core.domain.Response;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        contextId = "remoteInvokeService",
        value = "custiot"
)
public interface CustIotInvokeClient {
    @PostMapping({"/invoke/{functionCode}/{deviceCode}"})
    Response invoke(@PathVariable("functionCode") String functionCode, @PathVariable("deviceCode") String deviceCode, @RequestBody Map map);
}
