package com.arms.api.serverinfo.msa_communicate;

import com.arms.api.report.rolling3m.assignee.model.dto.Rolling3mDTO;
import com.arms.api.report.rolling3m.model.vo.PdServiceVO;
import com.arms.api.report.rolling3m.model.vo.PriorityValueVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "backendCoreReportPerformance", url = "${arms.backend-core.url}")
public interface BackendCoreReportPerformanceService {

    @PostMapping("/arms/report/{tableName}/getNodesWhereInIds.do")
    List<PriorityValueVO> selectPriorityValueByTable(@PathVariable String tableName, @RequestBody List<Long> cIds);

    @PostMapping("/arms/report/{tableName}/pdService-name-info")
    PdServiceVO selectPdServiceVersionName(@PathVariable String tableName, @RequestBody Rolling3mDTO rolling3mDTO);
}