admin
2019-07-11 3824cbcaec6e6c67418d5280a53e9c2fedeef6f9
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
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
     */
    public UserShareGoodsHistory getShareGoodsHistory(Long uid, Long auctionId);
 
    /**
     * 获取商品的分享转链链接
     * 
     * @param uid
     * @param auctionId
     * @param relationId
     *            -渠道ID
     * @return
     * @throws ShareGoodsException
     */
 
    public TaoBaoLink getTaoBaoLinkForShare(Long uid, Long auctionId, String relationId) throws ShareGoodsException;
    
    /**
     * 获取商品的分享转链链接
     * @param uid
     * @param auctionId
     * @param relationId
     * @param pid
     * @return
     * @throws ShareGoodsException
     */
    public TaoBaoLink getTaoBaoLinkForShare(Long uid, Long auctionId, String relationId,String pid) throws ShareGoodsException;
 
    /**
     * 获取商品的购买转链链接
     * 
     * @param uid
     * @param auctionId
     * @return
     * @throws ShareGoodsException
     */
    public TaoBaoLink getTaoBaoLinkForBuy(Long uid, Long auctionId, int pidType) throws ShareGoodsException;
 
    /**
     * 用会员运营ID获取商品的分享转链链接
     * 
     * @param uid
     * @param auctionId
     * @param pidType
     * @return
     * @throws ShareGoodsException
     */
    public TaoBaoLink getTaoBaoLinkForBuyWithSpecial(Long uid, String specialId, Long auctionId)
            throws ShareGoodsException;
 
    /**
     * 通过PID设置链接
     * 
     * @param uid
     * @param auctionId
     * @param pid
     * @return
     * @throws ShareGoodsException
     */
    public TaoBaoLink getTaoBaoLink(Long uid, Long auctionId, String pid) throws ShareGoodsException;
 
    /**
     * 淘礼金领取链接
     * @param uid
     * @param specialId
     * @param auctionId
     * @return
     * @throws ShareGoodsException
     */
    public TaoBaoLink getTaoLiJinLinkForBuy(Long uid, String specialId, Long auctionId,String pid) throws ShareGoodsException;
 
    /**
     * 淘礼金 链接
     * @param uid
     * @param auctionId
     * @param relationId
     * @return
     * @throws ShareGoodsException
     */
    public TaoBaoLink getTaoLiJinLinkForShare(Long uid, Long auctionId, String relationId) throws ShareGoodsException;
    
    
    
    /**
     * 
     * @param uid
     * @param auctionId
     * @return
     * @throws ShareGoodsException
     */
    public TaoBaoLink getTaoLiJinLinkForBuyWithOutFanLi(Long uid,  Long auctionId) throws ShareGoodsException;
 
}