fwq
2022-08-11 9435cad092c7a79f3dddc40098c33abceb24e281
提交 | 用户 | 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;
11
12 /**
13  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
14  */
9435ca 15 @FeignClient(name="phi-platfrom-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
F 48 }