提交 | 用户 | 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; |
d365dc
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
W |
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
|
10 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
11 |
|
|
12 |
/** |
|
13 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
14 |
*/ |
6dbbfc
|
15 |
@FeignClient(name="crm-platform-service",path = "/crm-platform",contextId = "crm-order") |
d365dc
|
16 |
public interface FOderService { |
W |
17 |
|
afa65b
|
18 |
/**取消订单*/ |
d365dc
|
19 |
@PostMapping(value = "/order/cancel") |
W |
20 |
Result cancelOrder( @RequestBody(required = false) OrderStatusDto orderStatusDto); |
|
21 |
|
afa65b
|
22 |
/**退款 |
C |
23 |
* |
|
24 |
* @param refundDto |
|
25 |
* @return refundReturnDto实体转化 |
|
26 |
*/ |
d365dc
|
27 |
@RequestMapping("/order/refund") |
3b07ed
|
28 |
Result refundOrder(@RequestBody(required = false) RefundDto refundDto); |
62a507
|
29 |
|
W |
30 |
|
|
31 |
/**查询列表 |
|
32 |
* |
|
33 |
* @param dto dto |
|
34 |
* @return refundReturnDto实体转化 |
|
35 |
*/ |
|
36 |
@RequestMapping("/order/list") |
|
37 |
Result list(@RequestBody(required = false) FOrderPageDto dto); |
f009e6
|
38 |
|
F |
39 |
/** |
|
40 |
* 专区订单 |
|
41 |
*/ |
|
42 |
@RequestMapping("/order/list/zone/orderNo") |
|
43 |
Result zoneOrderNoList(@RequestBody FOrderPageDto dto); |
|
44 |
|
d365dc
|
45 |
} |