package com.xhpc.common.api;

import com.xhpc.common.api.factory.EvcsServiceFallbackFactory;
import com.xhpc.common.core.constant.ServiceNameConstants;
import com.xhpc.common.core.domain.R;
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.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 *
 * @author yuyang
 * @date 2023-09-16 19:08
 */
@FeignClient(contextId = "EvcsService", value = ServiceNameConstants.XHPC_EVCS, fallbackFactory = EvcsServiceFallbackFactory.class)
public interface EvcsService {

    //市平台---设备充电中状态变化推送
    @GetMapping("/v10/getNotificationConnectorChargeStatus")
    R getNotificationConnectorChargeStatus(@RequestParam("serialNumber") String serialNumber);


    @PostMapping("/v20/getCYCNotificationConnectorChargeStatus")
    R getCYCNotificationConnectorChargeStatus(@RequestBody Map<String, Object> orderMap);


    @PostMapping("/v20/getCYCNotificationStartChargeResult")
    R getCYCNotificationStartChargeResult(@RequestBody Map<String, Object> orderMap);
}
