package com.njcn.csdevice.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.csdevice.api.fallback.CsSoftInfoClientFallbackFactory;
import com.njcn.csdevice.pojo.po.CsSoftInfoPO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xy
 */
@FeignClient(value = ServerInfo.CS_DEVICE_BOOT, path = "/csSoftInfo", fallbackFactory = CsSoftInfoClientFallbackFactory.class,contextId = "csSoftInfo")
public interface CsSoftInfoFeignClient {

    @PostMapping("/findSoftInfo")
    HttpResult<CsSoftInfoPO> findSoftInfo(@RequestParam("id") String id);

    @PostMapping("/saveSoftInfo")
    HttpResult<String> saveSoftInfo(@RequestBody CsSoftInfoPO po);

    @PostMapping("/removeSoftInfo")
    HttpResult<String> removeSoftInfo(@RequestParam("id") String id);

}
