|  |  |  | 
|---|
|  |  |  | import com.ruoyi.common.core.domain.R; | 
|---|
|  |  |  | import com.ruoyi.order.api.factory.ChargingOrderFallbackFactory; | 
|---|
|  |  |  | import com.ruoyi.order.api.model.TChargingOrder; | 
|---|
|  |  |  | import com.ruoyi.order.api.query.TChargingCountQuery; | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | @FeignClient(contextId = "ChargingOrderClient", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = ChargingOrderFallbackFactory.class) | 
|---|
|  |  |  | public interface ChargingOrderClient { | 
|---|
|  |  |  | @PostMapping(value = "/t-charging-order/useOrderCount") | 
|---|
|  |  |  | R<Long> useOrderCount(@RequestParam Long userId); | 
|---|
|  |  |  | R<Long> useOrderCount(@RequestParam("userId") Long userId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping(value = "/t-charging-order/detail") | 
|---|
|  |  |  | R<TChargingOrder> orderDetail(@RequestParam Long orderId); | 
|---|
|  |  |  | R<TChargingOrder> orderDetail(@RequestParam("orderId") Long orderId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 查询会员在本月有多少次享受了充电折扣 | 
|---|
|  |  |  | * @param req | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping(value = "/t-charging-order/getChargingCount") | 
|---|
|  |  |  | public R<Integer> getChargingCount(@RequestBody TChargingCountQuery req); | 
|---|
|  |  |  | } | 
|---|