fwq
2022-09-05 3657e72096f8df7d7c3cbbf3c4a53d12a87938b7
提交 | 用户 | 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
3ec52c 10 import javax.servlet.http.HttpServletRequest;
Z 11
ddd881 12 /**
F 13  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
14  */
39a067 15 @FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-order")
ddd881 16 public interface SPhipOrderService {
F 17
18     /**
19      * 开放平台-新-新增订单更新至phis
20      */
21     @PostMapping(value = "/newSync/order/add")
b7d12e 22     Result createOrder(@RequestBody OrderCreateDto params);
ddd881 23
F 24     /**
25      * 开放平台-新-订单状态更新至phis
26      */
27     @PostMapping(value = "/newSync/order/orderUpdate")
0937f1 28     Result updateOrderStatus(@RequestBody OrdersTotalDto params);
ddd881 29
F 30     /**
31      * 开放平台-新-订单结账更新至phis
32      */
33     @PostMapping(value = "/newSync/order/pay")
b7d12e 34     Result payOrderSuc(@RequestBody OrderPayDto params);
ddd881 35
F 36     /**
37      * 开放平台-新-订单退款更新至phis
38      */
39     @PostMapping(value = "/newSync/order/refund")
74df3f 40     Result refundOrder(@RequestBody OrderRefundDto params);
ddd881 41
F 42     /**
43      * 开放平台-新-取消订单更新至phis
44      */
45     @PostMapping(value = "/newSync/order/cancel")
74df3f 46     Result cancelOrder(@RequestBody OrderRefundDto params);
ddd881 47
90b4c6 48     /**
Z 49      * 开放平台-同步中心心跳退款流程
50      */
51     @PostMapping(value = "/refund/syn/refund")
52     Result synRefund(@RequestBody OrderRefundDto dto, @RequestHeader("appIdCode") String appIdCode);
88e548 53
3ec52c 54
88e548 55     /**
3ec52c 56      * 开放平台-开单
88e548 57      */
3ec52c 58     @PostMapping(value = "/order/add")
d7199c 59     Result orderAdd(@RequestBody OrderPHisDto dto);
3ec52c 60
Z 61     /**
62      * 开放平台-结账
63      */
64     @PostMapping(value = "/order/pay")
d7199c 65     Result orderPay(@RequestBody PayDto dto);
ddd881 66 }