| | |
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.dto.pdd.PDDGoodsDetail;
|
| | | import com.yeshi.fanli.entity.goods.CollectionGoodsV2;
|
| | | import com.yeshi.fanli.entity.jd.JDGoods;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
| | | import com.yeshi.fanli.exception.goods.CollectionGoodsException;
|
| | | import com.yeshi.fanli.goods.CollectionGoodsV2;
|
| | |
|
| | | public interface CollectionGoodsV2Service {
|
| | |
|
| | |
| | | * -商品ID
|
| | | * @throws CollectionGoodsException
|
| | | */
|
| | | public void cancelCollectionByAuctionId(Long uid, Long auctionId) throws CollectionGoodsException;
|
| | | public void cancelCollectionByAuctionId(Long uid, Long auctionId, Integer goodsType) throws CollectionGoodsException;
|
| | |
|
| | | /**
|
| | | * 取消收藏
|
| | |
| | | * @param pageSize
|
| | | * @return
|
| | | */
|
| | | public List<CollectionGoodsV2> getCollectionGoodsList(Long uid, int page, int pageSize);
|
| | | public List<CollectionGoodsV2> getCollectionGoodsList(Long uid, int page, int pageSize, Integer source);
|
| | |
|
| | | /**
|
| | | * 获取收藏数量
|
| | |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long getCollectionGoodsCount(Long uid);
|
| | | public long getCollectionGoodsCount(Long uid, Integer source);
|
| | |
|
| | | /**
|
| | | * 根据用户ID和淘宝商品ID查询是否收藏
|
| | |
| | | * @param actionId
|
| | | * @return
|
| | | */
|
| | | public CollectionGoodsV2 findByUidAndAuctionId(Long uid, Long actionId);
|
| | | public CollectionGoodsV2 findByUidAndAuctionId(Long uid, Long actionId, Integer goodsType);
|
| | |
|
| | | /**
|
| | | * 京东收藏
|
| | | * @param uid
|
| | | * @param jdGoods
|
| | | * @throws CollectionGoodsException
|
| | | */
|
| | | public void addJDCollection(Long uid, JDGoods jdGoods) throws CollectionGoodsException;
|
| | |
|
| | | /**
|
| | | * 拼多多收藏
|
| | | * @param uid
|
| | | * @param goods
|
| | | * @throws CollectionGoodsException
|
| | | */
|
| | | public void addPDDCollection(Long uid, PDDGoodsDetail goods) throws CollectionGoodsException;
|
| | |
|
| | | /**
|
| | | * 根据简版商品ID删除
|
| | | * @param uid
|
| | | * @param commonId
|
| | | */
|
| | | public void deteleBYByUidAndCommonId(Long uid, Long commonId);
|
| | |
|
| | | }
|