Pu Zhibing
2025-03-26 cbf2486983b77a27af9968bbb362cb8d43789115
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
package com.ruoyi.other.api.feignClient;
 
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.other.api.domain.ShopGiveawayTemporary;
import com.ruoyi.other.api.factory.ShopGiveawayTemporaryClientFallbackFactory;
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.RequestParam;
 
import java.util.List;
/**
 * @author zhibing.pu
 * @Date 2025/2/25 16:12
 */
@FeignClient(contextId = "ShopGiveawayTemporaryClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = ShopGiveawayTemporaryClientFallbackFactory.class)
public interface ShopGiveawayTemporaryClient {
    
    
    
    /**
     * 保存门店分佣临时数据
     * @param shopGiveawayTemporary
     */
    @PostMapping("/shopGiveawayTemporary/saveShopGiveawayTemporary")
    R saveShopGiveawayTemporary(@RequestBody ShopGiveawayTemporary shopGiveawayTemporary);
    
    
    
    /**
     * 获取订单相关门店分佣临时数据
     * @param orderId
     */
    @PostMapping("/shopGiveawayTemporary/getShopGiveawayTemporary")
    R<List<ShopGiveawayTemporary>> getShopGiveawayTemporary(@RequestParam("orderId") Long orderId);
    
    /**
     * 删除订单相关门店分佣临时数据
     * @param orderId
     */
    @PostMapping("/shopGiveawayTemporary/delShopGiveawayTemporary")
    R delShopGiveawayTemporary(@RequestParam("orderId") Long orderId);
}