Administrator
2018-10-30 c0c91fbda1ba601c4c8cb6d12fd43dfbe02eea5d
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
package com.yeshi.fanli.service.inter.goods;
 
import com.yeshi.fanli.entity.bus.share.UserShareGoodsHistory;
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
import com.yeshi.fanli.entity.taobao.TaoBaoLink;
import com.yeshi.fanli.exception.ShareGoodsException;
 
public interface ShareGoodsService {
 
    /**
     * 添加分享记录
     * 
     * @param history
     * @return
     * @throws ShareGoodsException
     */
    public void addShareGoodsHistory(UserShareGoodsHistory history);
 
    /**
     * 添加分享记录
     * 
     * @param uid
     * @param auctionId
     */
    public UserShareGoodsHistory addShareGoodsHistory(Long uid, Long auctionId) throws ShareGoodsException;
 
    /**
     * 添加分享
     * 
     * @param uid
     * @param goods
     * @return
     * @throws ShareGoodsException
     */
    public UserShareGoodsHistory addShareGoodsHistory(Long uid, TaoBaoGoodsBrief goods) throws ShareGoodsException;
 
    /**
     * 获取分享详情
     * 
     * @param uid
     * @param auctionId
     * @return
     * @throws ShareGoodsException
     */
    public UserShareGoodsHistory getShareGoodsHistoryDetail(Long uid, Long auctionId) throws ShareGoodsException;
 
    /**
     * 获取商品的分享转链链接
     * 
     * @param uid
     * @param auctionId
     * @return
     * @throws ShareGoodsException
     */
 
    public TaoBaoLink getTaoBaoLinkForShare(Long uid, Long auctionId) throws ShareGoodsException;
 
    /**
     * 获取商品的购买转链链接
     * 
     * @param uid
     * @param auctionId
     * @return
     * @throws ShareGoodsException
     */
    public TaoBaoLink getTaoBaoLinkForBuy(Long uid, Long auctionId, int pidType) throws ShareGoodsException;
 
}