Pu Zhibing
2025-02-25 49e96cc15baf35d710fe3a049fb97aff6a1af132
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
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.ShopPoint;
import com.ruoyi.other.api.domain.ShopPointCopy;
import com.ruoyi.other.api.factory.ShopPointClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
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 2024/12/26 15:58
 */
@FeignClient(contextId = "ShopPointClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = ShopPointClientFallbackFactory.class)
public interface ShopPointClient {
    
    /**
     * 保存门店积分流水
     * @param shopPoint
     */
    @PostMapping("/shop-point/saveShopPoint")
    void saveShopPoint(@RequestBody ShopPoint shopPoint);
 
    @PostMapping("/shop-point/saveShopPointCopy")
    void saveShopPointCopy(@RequestBody ShopPointCopy shopPoint);
 
    @DeleteMapping("/shop-point/deleteShopPointCopy")
    void deleteShopPointCopy(@RequestParam("orderId") Long orderId, @RequestParam("type") List<Integer> type);
    
    
    @PostMapping("/shop-point/getShopPointCopy")
    R<List<ShopPointCopy>> getShopPointCopy(@RequestParam("orderId") Long orderId, @RequestParam("type") List<Integer> type);
}