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;
|
|
}
|