Administrator
2018-11-20 7d0137653430fead485d7f554ed40f8dd893a07f
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
package com.yeshi.fanli.service.inter.goods;
 
import java.util.List;
 
import com.yeshi.fanli.entity.bus.user.CollectionGoods;
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
 
public interface CollectionGoodsService {
    /**
     * 保存
     * @param cg
     */
    void save(CollectionGoods cg);
    /**
     * 获取收藏的商品
     * @param uid
     * @param auctionId
     * @return
     */
    CollectionGoods findByUidAndAuctionId(long uid, long auctionId);
    
    CollectionGoods findByAuctionId(long auctionId);
 
    void delete(CollectionGoods find);
 
    List<CollectionGoods> findCollectionGoods(long uid, int page);
 
    int getCount(long uid);
 
    void delete(long auctionId, long uid);
 
    void clear(long uid);
    
    /**
     * 更新收藏的商品信息
     * @param goods
     */
    void updateCollectionGoods(TaoBaoGoodsBrief goods);
 
}