package com.njcn.device.pms.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.device.pms.api.fallback.PwMonitorClientFallbackFactory;
import com.njcn.device.pms.pojo.param.PmsBaseParam;
import com.njcn.device.pms.pojo.po.PmsTerminal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author clam
 * @date 2022/10/28
 */

@FeignClient(
        value = ServerInfo.DEVICE,
        path = "/pms/terminal",
        contextId = "pms/terminal",
        fallbackFactory = PwMonitorClientFallbackFactory.class)
public interface PmsTerminalClient {

    /**
    * @Description: 查询监测终端台账所有信息
    * @Param: []
    * @return: com.njcn.common.pojo.response.HttpResult<java.util.List<com.njcn.device.pms.pojo.po.PmsTerminal>>
    * @Author: clam
    * @Date: 2022/12/1
    */
    @PostMapping("/getTerminalSelectList")
    HttpResult<List<PmsTerminal>> getTerminalSelectList(@RequestBody PmsBaseParam pmsBaseParam);

    @PostMapping("/getTerminalSelectByIds")
    HttpResult<List<PmsTerminal>> getTerminalSelectByIds(@RequestBody List<String> ids);

}
