fwq
2022-07-28 ddd881645023481737e4379e92f022843abed877
提交 | 用户 | age
ddd881 1 package com.hz.his.feign.service.platform;
F 2
3 import com.hx.resultTool.Result;
4 import com.hz.his.dto.card.CardQueryDto;
5 import org.springframework.cloud.openfeign.FeignClient;
6 import org.springframework.web.bind.annotation.PostMapping;
7 import org.springframework.web.bind.annotation.RequestBody;
8 import org.springframework.web.bind.annotation.RequestParam;
9
10 /**
11  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
12  */
13 @FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-order")
14 public interface SPhipOrderService {
15
16     /**
17      * 开放平台-新-新增订单更新至phis
18      */
19     @PostMapping(value = "/newSync/order/add")
20     Result createOrder(@RequestParam("params") String params);
21
22     /**
23      * 开放平台-新-订单状态更新至phis
24      */
25     @PostMapping(value = "/newSync/order/orderUpdate")
26     Result updateOrderStatus(@RequestParam("params") String params);
27
28     /**
29      * 开放平台-新-订单结账更新至phis
30      */
31     @PostMapping(value = "/newSync/order/pay")
32     Result payOrderSuc(@RequestParam("params") String params);
33
34     /**
35      * 开放平台-新-订单退款更新至phis
36      */
37     @PostMapping(value = "/newSync/order/refund")
38     Result refundOrder(@RequestParam("params") String params);
39
40     /**
41      * 开放平台-新-取消订单更新至phis
42      */
43     @PostMapping(value = "/newSync/order/cancel")
44     Result cancelOrder(@RequestParam("params") String params);
45
46 }