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

import com.yuchen.saas.parking.charge.api.vo.charge.OccupyBlacklistRemindConfigVO;
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 = SpcOccupyBlacklistRemindConfigFeignClientFallback.class
)
public interface SpcOccupyBlacklistRemindConfigFeignClient {

    String ROOT_PATH = "/occupy/blacklist/remind/config";
    String GET_ONE_BY_PARKING_ID = "/getOneByParkingIdAndPlantNo";


    /**
     * 根据停车场获取黑名单运维配置
     * @param parkingId 停车场id
     * @param plateNo 车牌号
     * @return
     */
    @GetMapping(ROOT_PATH + GET_ONE_BY_PARKING_ID)
    R<OccupyBlacklistRemindConfigVO> getOneByParkingIdAndPlantNo(@RequestParam("parkingId") Long parkingId,@RequestParam("plateNo") String plateNo) ;

}
