| | |
| | | package com.ruoyi.chargingPile.api.feignClient; |
| | | |
| | | import com.ruoyi.chargingPile.api.dto.CheckChargingStrategyDTO; |
| | | import com.ruoyi.chargingPile.api.factory.AccountingStrategyDetailFallbackFactory; |
| | | import com.ruoyi.chargingPile.api.model.TAccountingStrategyDetail; |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | |
| | | public interface AccountingStrategyDetailClient { |
| | | |
| | | |
| | | /** |
| | | * 获取当前有效的计费策略明细 |
| | | * @param accountingStrategyId |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-accounting-strategy-detail/getNowData") |
| | | R<TAccountingStrategyDetail> getNowData(@RequestParam("accountingStrategyId") Integer accountingStrategyId); |
| | | |
| | | /** |
| | | * 通过站点id查询当前时段使用的策略明细 |
| | | * @param siteId |
| | |
| | | */ |
| | | @PostMapping("/t-accounting-strategy-detail/getDetailBySiteId") |
| | | R<TAccountingStrategyDetail> getDetailBySiteId(@RequestParam("siteId") Integer siteId); |
| | | /** |
| | | * 通过桩编号查询当前时段使用的策略明细 |
| | | * @param code |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-accounting-strategy-detail/getDetailByCode") |
| | | R<TAccountingStrategyDetail> getDetailByCode(@RequestParam("code") String code); |
| | | /** |
| | | * 校验充电桩计费模版是否准确 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-accounting-strategy-detail/checkChargingStrategy") |
| | | R<Boolean> checkChargingStrategy(@RequestBody CheckChargingStrategyDTO dto); |
| | | |
| | | |
| | | /** |
| | | * 根据计费策略主表id策略明细 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-accounting-strategy-detail/getListByAccountingStrategyId") |
| | | R<List<TAccountingStrategyDetail>> getListByAccountingStrategyId(@RequestParam("id") Integer id); |
| | | /** |
| | | * 通过桩编号查询当前使用的策略明细列表 |
| | | * @param code |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-accounting-strategy-detail/getDetailListByCode") |
| | | R<List<TAccountingStrategyDetail>> getDetailListByCode(@RequestParam("code") String code); |
| | | } |