package com.njcn.device.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.device.api.fallback.DeptLineFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author denghuajun
 * @date 2022/2/11
 *
 */
@FeignClient(value = ServerInfo.DEVICE,path = "/deptLine",fallbackFactory = DeptLineFeignClientFallbackFactory.class)
public interface DeptLineFeignClient {
    @PostMapping("/getLineByDeptId")
    HttpResult<List<String>> getLineByDeptId(String id);

    @PostMapping("/selectDeptBindLines")
    HttpResult<Boolean> selectDeptBindLines(@RequestParam("ids") List<String> ids);
}
