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

import com.yuchen.saas.parking.api.entity.black.VehicleBlacklistPassLog;
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;

/**
 * @author mqs
 * @version 1.0
 */
@FeignClient(
        value = AppNameConstant.SAAS_PARKING,
        fallback = VehicleBlacklistPassLogClientFallback.class
)
public interface VehicleBlacklistPassLogClient {

    /**
     * 车辆黑名单通行记录 新增/修改
     * @param blacklistPassLog
     * @return
     */
    @PostMapping("/vehicleBlacklistPassLog/saveOrUpdate")
    R saveOrUpdate(@RequestBody VehicleBlacklistPassLog blacklistPassLog);

}
