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