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

import com.yuchen.saas.parking.charge.api.dto.PmgBatParkBillLogDto;
import com.yuchen.saas.parking.charge.api.po.ParkingChargingRecord;
import com.yuchen.saas.parking.charge.api.vo.ChargePlaceIdleCostDetailsVo;
import com.yuchen.saas.parking.charge.api.vo.ParkingBillLogDeatilVo;
import com.yuchen.saas.parking.charge.api.vo.ParkingBillLogExceptionTaskVo;
import com.yuchen.saas.parking.charge.api.vo.PmgBatParkBillLogDeatilVo;
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.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;
import java.util.List;
import java.util.Map;

@FeignClient(
        value = AppNameConstant.SAAS_PARKING_CHARGE,
        fallback = ChargeRecordFeignClientFallback.class
)
public interface ChargeRecordFeignClient {

    String ROOT_PATH = "/feign/chargeRecord";

    String ListByPlateNo = "/record/listByPlateNo";
    @GetMapping(ROOT_PATH+ListByPlateNo)
    R<List<ParkingChargingRecord>> listByPlateNo(@RequestParam("plateNo") String plateNo,@RequestParam("parkingId") long parkingId, @RequestParam("start")Date start, @RequestParam("end")Date end);
}
