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

import com.yuchen.saas.park.api.entity.park.ParkInvoiceInfo;
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;

/**
 * @Author: 肖润飞
 * @CreateTime: 2022/11/15 16:31
 * @Description: 发票相关
 * @Version: 1.0
 */
@FeignClient(
        value = AppNameConstant.SAAS_PARKING,
        fallbackFactory = ParkInvoiceFeignServiceFallback.class
)
public interface ParkInvoiceFeignService {

    @GetMapping("/invoice/getByParkId")
    R<ParkInvoiceInfo> getByParkId(@RequestParam Long parkId);
}
