package com.artfess.base.feign;

import com.artfess.base.conf.FeignConfig;
import com.artfess.base.feign.impl.ApplicationFeignServiceFactory;
import com.artfess.base.feign.impl.BizFeignServiceFactory;
import com.artfess.base.jms.Notice;
import com.artfess.base.model.CommonResult;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.swagger.annotations.ApiParam;
import org.apache.http.client.ClientProtocolException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;
import java.util.Map;

/**
 * @author css
 */
@FeignClient(name = "biz-cssc", fallbackFactory = BizFeignServiceFactory.class, configuration = FeignConfig.class, primary = false)
public interface BizFeignService {

    /**
     * 修改执行器状态
     *
     * @param code
     * @param status
     * @return
     * @throws ClientProtocolException
     * @throws IOException
     */
/*
    @RequestMapping(value = "/biz/model/modelActuator/v1/updateStatusByHeartbeat", method = RequestMethod.POST)
    public void updateStatusByHeartbeat( @RequestParam(value="code", required=true) String code, @RequestParam(value="status", required=true) String status);
*/


}
