package com.hdkj.lt.bf.adapter;

import com.hdkj.hussar.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 服务调用si量测中心接口
 *
 * @author lsl
 * @since 2026-07-23
 */
@FeignClient(value = "load-transfer-si", contextId = "SiMeasurementClient")
public interface SiMeasurementClient {

    /**
     * 查询低压用户电压（A相，consType=2）
     *
     * @param request Map: consNos (List<String>), startTime (String), endTime (String)
     * @return consNo → measValue(伏特V)
     */
    @PostMapping("/measurement/queryConsumerVoltage")
    ApiResponse<Map<String, BigDecimal>> queryConsumerVoltage(@RequestBody Map<String, Object> request);
}