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