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

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.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(
        value = AppNameConstant.SAAS_PARKING_CHARGE,
        fallback = SpcOccupyEventAlramFeignClientFallback.class
)
public interface SpcOccupyEventAlarmFeignClient {

    String ROOT_PATH = "/occupy/event/alarm";

    String GET_LED_CONTENT = "/getLedContent";



    /**
     * 根据停车场和车牌获取led内容
     * @param parkingId 停车场id
     * @param plateNo  车牌号
     * @param passType  出入标识（1：入场，2：出场）
     * @return
     */
    @GetMapping(ROOT_PATH + GET_LED_CONTENT)
     R<String> getLedContent(@RequestParam("parkingId")Long parkingId, @RequestParam("plateNo")String plateNo, @RequestParam("passType") Integer passType);

}
