admin
2024-01-23 81da61b828e29b7745e1382dfbbaeb685dc083ef
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
package com.yeshi.fanli.service.inter.goods;
 
import com.yeshi.fanli.entity.bus.share.UserShareGoodsHistory;
import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief;
import com.yeshi.fanli.entity.taobao.TaoBaoLink;
import com.yeshi.common.entity.taobao.TaoKeAppInfo;
import com.yeshi.fanli.exception.share.ShareGoodsException;
import com.yeshi.fanli.exception.tlj.TaoLiJinCreateException;
 
public interface ShareGoodsService {
 
    /**
     * 添加分享记录
     * 
     * @param history
     * @return
     * @throws ShareGoodsException
     */
    public void addShareGoodsHistory(UserShareGoodsHistory history);
 
    /**
     * 添加分享记录
     * 
     * @param uid
     * @param auctionId
     */
    public UserShareGoodsHistory addShareGoodsHistory(Long uid, String 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, String auctionId) throws ShareGoodsException;
 
    /**
     * 获取分享记录
     * 
     * @param uid
     * @param auctionId
     * @return
     */
    public UserShareGoodsHistory getShareGoodsHistory(Long uid, String auctionId);
 
 
    /**
     * 通过PID设置链接
     * 
     * @param uid
     * @param auctionId
     * @param pid
     * @return
     * @throws ShareGoodsException
     */
    public TaoBaoLink getTaoBaoLink(Long uid, String auctionId, String pid) throws ShareGoodsException;
 
    /**
     * 
     * @param uid
     * @param auctionId
     * @return
     * @throws ShareGoodsException
     */
    public TaoBaoLink getTaoLiJinLinkForBuyWithOutFanLi(Long uid,  String auctionId,TaoKeAppInfo app) throws ShareGoodsException,TaoLiJinCreateException;
 
    public String createTaoBaoToken(Long uid, TaoBaoGoodsBrief goods);
 
}