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

import com.yuchen.saas.parking.charge.api.dto.IscPlaceEventDto;
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,
        fallback = PlaceEventClientFallback.class
)
public interface PlaceEventClient {

    String ROOT_PATH = "/feign/place/event";

    String NOTICE = "/notice";

    @PostMapping(ROOT_PATH + NOTICE)
    R save(@RequestBody IscPlaceEventDto event);
}
