package com.yuchen.saas.parking.charge.api.feign;

import com.yuchen.saas.parking.charge.api.dto.charge.SpcTerminalDeviceTagDTO;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        value = AppNameConstant.SAAS_PARKING_CHARGE,
        fallbackFactory = SpcChargeTerminalFeignClientFallback.class
)
public interface SpcChargeTerminalFeignClient {

    /**
     * 更新充电终端设备标签信息
     * @return 更新成功失败消息
     */
    @PostMapping("/station/charge/terminal/updateDeviceTags")
    R<Boolean> updateTerminalDeviceTags(@RequestBody SpcTerminalDeviceTagDTO terminalDeviceTagDTO);
}
