package com.xhpc.common.api;

import com.xhpc.common.api.factory.ChargingStationPushStatusFallbackFactory;
import com.xhpc.common.core.constant.ServiceNameConstants;
import com.xhpc.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * 用于evcs的跨服务调用
 * save station status and edit station
 *
 * @author WH
 * @date 2021/11/5 10:05
 * @since version-1.0
 */
@FeignClient(contextId = "ChargingStationPushStatusService", value = ServiceNameConstants.XHPC_CHARGING_STATION, fallbackFactory = ChargingStationPushStatusFallbackFactory.class)
public interface ChargingStationPushStatusService {

    @PostMapping("/station/editStationStatus")
    AjaxResult editStationStatus(@RequestBody Map<String, Object> map);

    @PostMapping("/station/saveStationStatus")
    AjaxResult saveStationStatus(@RequestBody Map<String, Object> map);

}
