提交 | 用户 | age
|
d365dc
|
1 |
package com.hz.crm.feign; |
W |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
62a507
|
4 |
import com.hz.crm.dto.FOrderPageDto; |
d365dc
|
5 |
import com.hz.crm.dto.OrderStatusDto; |
ed365a
|
6 |
import com.hz.crm.dto.order.refund.RefundDto; |
7f594d
|
7 |
import com.hz.crm.vo.order.OrderAddVo; |
C |
8 |
import com.hz.crm.vo.order.OrderConfirmVo; |
d365dc
|
9 |
import org.springframework.cloud.openfeign.FeignClient; |
W |
10 |
import org.springframework.web.bind.annotation.PostMapping; |
|
11 |
import org.springframework.web.bind.annotation.RequestBody; |
|
12 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
13 |
|
|
14 |
/** |
|
15 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
16 |
*/ |
6dbbfc
|
17 |
@FeignClient(name="crm-platform-service",path = "/crm-platform",contextId = "crm-order") |
d365dc
|
18 |
public interface FOderService { |
W |
19 |
|
afa65b
|
20 |
/**取消订单*/ |
d365dc
|
21 |
@PostMapping(value = "/order/cancel") |
W |
22 |
Result cancelOrder( @RequestBody(required = false) OrderStatusDto orderStatusDto); |
|
23 |
|
afa65b
|
24 |
/**退款 |
C |
25 |
* |
|
26 |
* @param refundDto |
|
27 |
* @return refundReturnDto实体转化 |
|
28 |
*/ |
d365dc
|
29 |
@RequestMapping("/order/refund") |
3b07ed
|
30 |
Result refundOrder(@RequestBody(required = false) RefundDto refundDto); |
62a507
|
31 |
|
W |
32 |
|
|
33 |
/**查询列表 |
|
34 |
* |
|
35 |
* @param dto dto |
|
36 |
* @return refundReturnDto实体转化 |
|
37 |
*/ |
|
38 |
@RequestMapping("/order/list") |
|
39 |
Result list(@RequestBody(required = false) FOrderPageDto dto); |
f009e6
|
40 |
|
F |
41 |
/** |
2ee1c9
|
42 |
* 用户购买订单列表 |
f009e6
|
43 |
*/ |
2ee1c9
|
44 |
@RequestMapping("/order/user/buy/list") |
F |
45 |
Result userBuyList(@RequestBody FOrderPageDto dto); |
f009e6
|
46 |
|
7f594d
|
47 |
/** |
C |
48 |
* 积分订单确认 |
|
49 |
*/ |
|
50 |
@RequestMapping("/order/integral/confirm-order") |
|
51 |
Result integralOrderConfirm(@RequestBody OrderConfirmVo orderConfirmVo); |
|
52 |
|
|
53 |
/** |
|
54 |
* 积分订单下单 |
|
55 |
*/ |
|
56 |
@RequestMapping("/order/integral/add") |
|
57 |
Result integralOrderAdd(@RequestBody OrderAddVo orderAddVo); |
|
58 |
|
d365dc
|
59 |
} |