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.CsGroupClientFallbackFactory;
import com.njcn.csdevice.pojo.vo.CsGroupVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author xy
 */
@FeignClient(value = ServerInfo.CS_DEVICE_BOOT, path = "/csGroup", fallbackFactory = CsGroupClientFallbackFactory.class,contextId = "csGroup")

public interface CsGroupFeignClient {

    @PostMapping("/getGroup")
    HttpResult<List<CsGroupVO>> getGroupData(@RequestParam("dataSet") String dataSet);

}
