xiangpei
11 小时以前 4f89ece90fca89b667a244376605f9190a234b80
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
package cn.lili.modules.goods.service;
 
import cn.lili.modules.goods.entity.dos.GoodsGallery;
import com.baomidou.mybatisplus.extension.service.IService;
 
import java.util.List;
 
/**
 * 商品相册业务层
 *
 * @author pikachu
 * 2020-03-13 16:18:56
 */
public interface GoodsGalleryService extends IService<GoodsGallery> {
    /**
     * 添加商品相册
     *
     * @param goodsGalleryList 商品相册列表
     * @param goodsId          商品ID
     */
    void add(List<String> goodsGalleryList, String goodsId);
 
    /**
     * 根据原图获取缩略图
     *
     * @param origin 原图地址
     * @return 商品相册
     */
    GoodsGallery getGoodsGallery(String origin);
 
    /**
     * 根据商品 id查询商品相册原图
     *
     * @param goodsId 商品ID
     * @return 商品相册列表
     */
    List<GoodsGallery> goodsGalleryList(String goodsId);
 
    /**
     * 根据商品 id删除商品相册缩略图
     *
     * @param goodsId 商品ID
     */
    void removeByGoodsId(String goodsId);
 
}