zhouxiang
2022-08-19 90b4c648e1ece1e936a6b7d7131f97f6bffb523b
提交 | 用户 | age
ddd881 1 package com.hz.his.feign.service.platform;
F 2
3 import com.hx.resultTool.Result;
0937f1 4 import com.hz.his.dto.order.OrderCreateDto;
W 5 import com.hz.his.dto.order.OrderPayDto;
6 import com.hz.his.dto.order.OrderRefundDto;
7 import com.hz.his.dto.order.OrdersTotalDto;
ddd881 8 import org.springframework.cloud.openfeign.FeignClient;
F 9 import org.springframework.web.bind.annotation.PostMapping;
10 import org.springframework.web.bind.annotation.RequestBody;
90b4c6 11 import org.springframework.web.bind.annotation.RequestHeader;
ddd881 12
F 13 /**
14  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
15  */
39a067 16 @FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-order")
ddd881 17 public interface SPhipOrderService {
F 18
19     /**
20      * 开放平台-新-新增订单更新至phis
21      */
22     @PostMapping(value = "/newSync/order/add")
b7d12e 23     Result createOrder(@RequestBody OrderCreateDto params);
ddd881 24
F 25     /**
26      * 开放平台-新-订单状态更新至phis
27      */
28     @PostMapping(value = "/newSync/order/orderUpdate")
0937f1 29     Result updateOrderStatus(@RequestBody OrdersTotalDto params);
ddd881 30
F 31     /**
32      * 开放平台-新-订单结账更新至phis
33      */
34     @PostMapping(value = "/newSync/order/pay")
b7d12e 35     Result payOrderSuc(@RequestBody OrderPayDto params);
ddd881 36
F 37     /**
38      * 开放平台-新-订单退款更新至phis
39      */
40     @PostMapping(value = "/newSync/order/refund")
74df3f 41     Result refundOrder(@RequestBody OrderRefundDto params);
ddd881 42
F 43     /**
44      * 开放平台-新-取消订单更新至phis
45      */
46     @PostMapping(value = "/newSync/order/cancel")
74df3f 47     Result cancelOrder(@RequestBody OrderRefundDto params);
ddd881 48
90b4c6 49     /**
Z 50      * 开放平台-同步中心心跳退款流程
51      */
52     @PostMapping(value = "/refund/syn/refund")
53     Result synRefund(@RequestBody OrderRefundDto dto, @RequestHeader("appIdCode") String appIdCode);
ddd881 54 }