| package com.ruoyi.chargingPile.api.feignClient; | 
|   | 
| import com.ruoyi.chargingPile.api.factory.ParkingLotFallbackFactory; | 
| import com.ruoyi.chargingPile.api.model.TChargingPile; | 
| import com.ruoyi.chargingPile.api.model.TParkingLot; | 
| import com.ruoyi.chargingPile.api.model.TParkingRecord; | 
| import com.ruoyi.common.core.constant.ServiceNameConstants; | 
| import com.ruoyi.common.core.domain.R; | 
| import io.swagger.annotations.ApiOperation; | 
| 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.RequestParam; | 
|   | 
| import java.math.BigDecimal; | 
| import java.time.LocalDate; | 
| import java.util.List; | 
|   | 
| /** | 
|  * 停车场服务 | 
|  * @author ruoyi | 
|  */ | 
| @FeignClient(contextId = "ParkingLotClient", value = ServiceNameConstants.CHARGINGPILE_SERVICE, fallbackFactory = ParkingLotFallbackFactory.class) | 
| public interface ParkingLotClient { | 
|   | 
|     /** | 
|      * 通过站点id查询停车场信息 | 
|      */ | 
|     @PostMapping(value = "/t-parking-lot/getLotBySiteId") | 
|     R<TParkingLot> getLotBySiteId(@RequestParam("siteId") Integer siteId); | 
|      | 
|     /** | 
|      * 获取所有停车场数据 | 
|      */ | 
|     @PostMapping(value = "/t-parking-lot/getAllParkingLot") | 
|     R<List<TParkingLot>> getAllParkingLot(); | 
|      | 
|      | 
|   | 
|     @GetMapping(value = "/t-parking-lot/getRecordById") | 
|     R<TParkingRecord> getRecordById(@RequestParam("id") Long siteId); | 
|   | 
|     @PostMapping(value = "/t-parking-lot/getRecordAmount") | 
|     R<BigDecimal> getRecordAmount(@RequestParam("sixBefore") LocalDate sixBefore); | 
|      | 
|      | 
|     /** | 
|      * 根据停车场标识查询停车场 | 
|      * @param appKey | 
|      * @return | 
|      */ | 
|     @PostMapping(value = "/t-parking-lot/getParkingLotByAppKey") | 
|     R<TParkingLot> getParkingLotByAppKey(@RequestParam("appKey") String appKey); | 
|     @PostMapping(value = "/t-parking-lot/getSiteIdByOrderId") | 
|     R<Integer> getSiteIdByOrderId(@RequestParam("id") Long id); | 
|     @PostMapping(value = "/t-parking-lot/getSiteIdAll") | 
|     R<List<TParkingRecord>> getSiteIdAll(); | 
| } |