wangrenhuang
2022-09-23 e35399063262015068ed741486d06a0a52f3e264
提交 | 用户 | 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;
3b07ed 6 import com.hz.crm.dto.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  */
15 @FeignClient(name="crm-platform-service",path = "/crmp",contextId = "crm-order")
16 public interface FOderService {
17
18     /*取消订单*/
19     @PostMapping(value = "/order/cancel")
20     Result cancelOrder( @RequestBody(required = false) OrderStatusDto orderStatusDto);
21
22     /*退款*/
23     @RequestMapping("/order/refund")
3b07ed 24     Result refundOrder(@RequestBody(required = false) RefundDto refundDto);
d365dc 25 }