| | |
| | | import com.xinquan.order.api.factory.RemoteOrderFallbackFactory; |
| | | import java.util.List; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestHeader; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * @author mitao |
| | |
| | | */ |
| | | @FeignClient(contextId = "remoteOrderService", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = RemoteOrderFallbackFactory.class) |
| | | public interface RemoteOrderService { |
| | | |
| | | @GetMapping("/client/order/order/getMeditationIsBuy/{id}/{meditationId}") |
| | | public R<Integer> getMeditationIsBuy(@PathVariable("id")Long id,@PathVariable("meditationId")Long meditationId); |
| | | @GetMapping("/client/order/order/getMeditationIsBuyAll/{id}") |
| | | public R<List<Order>> getMeditationIsBuyAll(@PathVariable("id")Long id); |
| | | @PostMapping("/mgt/order/order/getOrderList") |
| | | public R<List<Order>> getOrderList(@RequestParam("status") Integer status, |
| | | @RequestParam("timeType") Integer timeType, |
| | | @RequestParam("time") String time); |
| | | @PostMapping("/inner/order/order/getOrderListByType") |
| | | R<List<Order>> getOrderListByType(@RequestParam("userId") Long userId, |
| | | @RequestParam("orderFrom") Integer orderFrom, |
| | | @RequestHeader(SecurityConstants.FROM_SOURCE) String source); |
| | | |
| | | @GetMapping("/client/order/order/getCommissionByUserIds/{userIds}") |
| | | public R<String> getCommissionByUserIds(@PathVariable("userIds") String userIds); |
| | | |
| | | @PostMapping("/client/order/order/queryChargeByUserId/{userId}") |
| | | public R<String> queryChargeByUserId(@PathVariable("userId") Long userId); |
| | | |
| | | @PostMapping("/client/order/order/getOrderById/{orderId}") |
| | | public R<Order> getOrderById(@PathVariable("orderId") Long orderId); |
| | | } |