cmg
2024-05-07 949cfe8208afba15b5cb25ba8ca2691766f7d1dc
提交 | 用户 | age
a4c260 1 package com.hz.crm.feign;
995edc 2
W 3 import com.hx.resultTool.Result;
a4c260 4 import com.hz.crm.dto.OrderRefundDto;
995edc 5 import org.springframework.cloud.openfeign.FeignClient;
W 6 import org.springframework.web.bind.annotation.PostMapping;
7 import org.springframework.web.bind.annotation.RequestBody;
8
9 /**
10  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
11  */
949cfe 12 @FeignClient(name="crm-user",path = "/crm-platform",contextId = "crm-order-refund")
995edc 13 public interface FOderRefundService {
W 14
15     @PostMapping(value = "/order/refund/refundAmount")
16     Result list( @RequestBody(required = false) OrderRefundDto orderRefundDto);
17
18 }