chenjiahe
2024-01-08 9d9d371802c4499533b3af35774a7e8089c3a4dc
提交 | 用户 | age
d365dc 1 package com.hz.crm.feign;
W 2
3 import com.hx.resultTool.Result;
62a507 4 import com.hz.crm.dto.FOrderPageDto;
d365dc 5 import com.hz.crm.dto.OrderStatusDto;
ed365a 6 import com.hz.crm.dto.order.refund.RefundDto;
7f594d 7 import com.hz.crm.vo.order.OrderAddVo;
C 8 import com.hz.crm.vo.order.OrderConfirmVo;
232e7c 9 import com.hz.crm.vo.order.OrderPayVo;
d365dc 10 import org.springframework.cloud.openfeign.FeignClient;
W 11 import org.springframework.web.bind.annotation.PostMapping;
12 import org.springframework.web.bind.annotation.RequestBody;
13 import org.springframework.web.bind.annotation.RequestMapping;
14
15 /**
16  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
17  */
6dbbfc 18 @FeignClient(name="crm-platform-service",path = "/crm-platform",contextId = "crm-order")
d365dc 19 public interface FOderService {
W 20
afa65b 21     /**取消订单*/
d365dc 22     @PostMapping(value = "/order/cancel")
W 23     Result cancelOrder( @RequestBody(required = false) OrderStatusDto orderStatusDto);
24
afa65b 25     /**退款
C 26      *
27      * @param refundDto
28      * @return refundReturnDto实体转化
29      */
d365dc 30     @RequestMapping("/order/refund")
3b07ed 31     Result refundOrder(@RequestBody(required = false) RefundDto refundDto);
62a507 32
W 33
34     /**查询列表
35      *
36      * @param dto dto
37      * @return refundReturnDto实体转化
38      */
39     @RequestMapping("/order/list")
40     Result list(@RequestBody(required = false) FOrderPageDto dto);
f009e6 41
F 42     /**
2ee1c9 43      * 用户购买订单列表
f009e6 44      */
2ee1c9 45     @RequestMapping("/order/user/buy/list")
F 46     Result userBuyList(@RequestBody FOrderPageDto dto);
f009e6 47
7f594d 48     /**
be4ee7 49      * 积分订单确认数据
7f594d 50      */
be4ee7 51     @RequestMapping("/order/integral-crm/confirm-order")
7f594d 52     Result integralOrderConfirm(@RequestBody OrderConfirmVo orderConfirmVo);
C 53
54     /**
88cd43 55      * 积分订单下单组合数据
C 56      */
57     @RequestMapping("/order/integral/get/add-data")
58     Result getAddOrderData(@RequestBody OrderAddVo orderAddVo);
59
60     /**
7f594d 61      * 积分订单下单
C 62      */
be4ee7 63     @RequestMapping("/order/integral-crm/add")
7f594d 64     Result integralOrderAdd(@RequestBody OrderAddVo orderAddVo);
C 65
232e7c 66     /**
C 67      * 订单支付
68      */
69     @RequestMapping("/pay/unify-create")
9d9d37 70     Result orderPay(@RequestBody OrderPayVo orderPayVo);
232e7c 71
d365dc 72 }