From 554de444b87aab5f93cb1593a8095612cf9479a7 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期二, 09 六月 2020 17:34:30 +0800 Subject: [PATCH] 订单 --- fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CollectionGoodsV2Service.java | 63 +++++++++++++++++++++++++++++-- 1 files changed, 58 insertions(+), 5 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CollectionGoodsV2Service.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CollectionGoodsV2Service.java index f41c991..b3f53b3 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CollectionGoodsV2Service.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CollectionGoodsV2Service.java @@ -2,9 +2,13 @@ import java.util.List; +import com.yeshi.fanli.dto.pdd.PDDGoodsDetail; +import com.yeshi.fanli.dto.suning.SuningGoodsInfo; +import com.yeshi.fanli.dto.vip.goods.VIPGoodsInfo; +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 { @@ -47,7 +51,8 @@ * -鍟嗗搧ID * @throws CollectionGoodsException */ - public void cancelCollectionByAuctionId(Long uid, Long auctionId) throws CollectionGoodsException; + public void cancelCollectionByAuctionId(Long uid, Long auctionId, Integer goodsType) + throws CollectionGoodsException; /** * 鍙栨秷鏀惰棌 @@ -65,7 +70,8 @@ * @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, + boolean notBackSuVip); /** * 鑾峰彇鏀惰棌鏁伴噺 @@ -73,7 +79,7 @@ * @param uid * @return */ - public long getCollectionGoodsCount(Long uid); + public long getCollectionGoodsCount(Long uid, Integer source, boolean notBackSuVip); /** * 鏍规嵁鐢ㄦ埛ID鍜屾窐瀹濆晢鍝両D鏌ヨ鏄惁鏀惰棌 @@ -82,6 +88,53 @@ * @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; + + /** + * 鍞搧浼氭敹钘� + * @Title: addVIPCollection + * @Description: + * @param uid + * @param goods + * @throws CollectionGoodsException + * void 杩斿洖绫诲瀷 + * @throws + */ + public void addVIPCollection(Long uid, VIPGoodsInfo goods) throws CollectionGoodsException; + + /** + * 鑻忓畞鏀惰棌 + * @Title: addSuningCollection + * @Description: + * @param uid + * @param goods + * @throws CollectionGoodsException + * void 杩斿洖绫诲瀷 + * @throws + */ + public void addSuningCollection(Long uid, SuningGoodsInfo goods) throws CollectionGoodsException; + + /** + * 鏍规嵁绠�鐗堝晢鍝両D鍒犻櫎 + * @param uid + * @param commonId + */ + public void deteleBYByUidAndCommonId(Long uid, Long commonId); } -- Gitblit v1.8.0