fwq
2022-10-19 c65bc942b517f48b9758b5fb0fa1681b4f16e549
提交 | 用户 | age
d365dc 1 package com.hz.crm.feign;
W 2
3 import com.hx.resultTool.Result;
4 import com.hz.crm.dto.OrderStatusDto;
ed365a 5 import com.hz.crm.dto.order.refund.RefundDto;
d365dc 6 import org.springframework.cloud.openfeign.FeignClient;
W 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
afa65b 17     /**取消订单*/
d365dc 18     @PostMapping(value = "/order/cancel")
W 19     Result cancelOrder( @RequestBody(required = false) OrderStatusDto orderStatusDto);
20
afa65b 21     /**退款
C 22      *
23      * @param refundDto
24      * @return refundReturnDto实体转化
25      */
d365dc 26     @RequestMapping("/order/refund")
3b07ed 27     Result refundOrder(@RequestBody(required = false) RefundDto refundDto);
d365dc 28 }