提交 | 用户 | age
|
d365dc
|
1 |
package com.hz.crm.feign; |
W |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.crm.dto.OrderRefundDto; |
|
5 |
import com.hz.crm.dto.OrderStatusDto; |
|
6 |
import org.springframework.cloud.openfeign.FeignClient; |
|
7 |
import org.springframework.web.bind.annotation.PostMapping; |
|
8 |
import org.springframework.web.bind.annotation.RequestBody; |
|
9 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
10 |
|
|
11 |
/** |
|
12 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
13 |
*/ |
|
14 |
@FeignClient(name="crm-platform-service",path = "/crmp",contextId = "crm-order") |
|
15 |
public interface FOderService { |
|
16 |
|
|
17 |
/*取消订单*/ |
|
18 |
@PostMapping(value = "/order/cancel") |
|
19 |
Result cancelOrder( @RequestBody(required = false) OrderStatusDto orderStatusDto); |
|
20 |
|
|
21 |
/*退款*/ |
|
22 |
@RequestMapping("/order/refund") |
|
23 |
Result refundOrder(@RequestBody(required = false) OrderStatusDto orderStatusDto); |
|
24 |
} |