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