mitao
2025-01-10 b9679b6f96bbe8b52ee1d699033d9021d5fe870f
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package com.ruoyi.system.api.service;
 
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.dto.AppShopGoodsGetDto;
import com.ruoyi.system.api.domain.dto.GoodsTotalChangeDto;
import com.ruoyi.system.api.domain.dto.MerGoodsPriceListDto;
import com.ruoyi.system.api.domain.poji.goods.Goods;
import com.ruoyi.system.api.domain.poji.goods.GoodsFile;
import com.ruoyi.system.api.domain.poji.goods.ShopGoods;
import com.ruoyi.system.api.domain.vo.MerGoodsPriceListVo;
import com.ruoyi.system.api.factory.RemoteGoodsFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
 
import java.util.List;
 
/**
 * @author jqs34
 * @ClassName RemoteGoodsService
 * @description: TODO
 * @date 2023年05月23日
 * @version: 1.0
 */
@FeignClient(contextId = "remoteGoodsService", value = ServiceNameConstants.GOODS_SERVICE, fallbackFactory = RemoteGoodsFallbackFactory.class)
public interface RemoteGoodsService {
 
 
 
    @PostMapping("/goods/getGoods")
    public R<Goods> getGoods(@RequestBody String goodsId);
 
    @PostMapping("/goods/getGoodsFile")
    public R<GoodsFile> getGoodsFile(@RequestBody String goodsId);
 
    @PostMapping("/goods/getShopGoods")
    public R<ShopGoods> getShopGoods(@RequestBody AppShopGoodsGetDto appShopGoodsGetDto);
 
    @PostMapping("/goods/deleteGoodsClass")
    public R deleteGoodsClass(@RequestBody Long classId);
 
    /**
     * @description  删除商品标签
     * @author  jqs
     * @date    2023/6/8 17:07
     * @param goodsTag
     * @return  R
     */
    @PostMapping("/goods/deleteGoodsTag")
    public R deleteGoodsTag(@RequestBody String goodsTag);
 
    @PostMapping("/goods/listGoodsByGoodsId")
    public R<List<Goods>> listGoodsByGoodsId(@RequestBody String goodsIds);
 
 
    /**
     * @description  通过id获取商品价格列表
     * @author  jqs
     * @date    2023/7/3 10:01
     * @param merGoodsPriceListDto
     * @return  R<List<MerGoodsPriceListVo>>
     */
    @PostMapping("/goods/listGoodsPriceByGoodsId")
    public R<List<MerGoodsPriceListVo>> listGoodsPriceByGoodsId(@RequestBody MerGoodsPriceListDto merGoodsPriceListDto);
 
 
    @PostMapping("/goods/changeGoodsTotal")
    public R changeGoodsTotal(@RequestBody List<GoodsTotalChangeDto> goodsTotalChangeDtoList);
 
 
    /**
     * @description  获取分类商品名
     * @author  jqs
     * @date    2023/8/12 18:39
     * @param classId
     * @return  R<List<String>>
     */
    @PostMapping("/goods/listGoodsNameByGoodsClass")
    public R<List<String>> listGoodsNameByGoodsClass(@RequestBody Long classId);
 
    /**
     * 推送微信小程序订阅消息
     * @param appointmentId
     * @return
     */
    @GetMapping("/live/push/{appointmentId}")
    R<?> push(@PathVariable("appointmentId") Long appointmentId);
}