| | |
| | | package com.yeshi.fanli.service.inter.goods;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.goods.ScanHistoryV2;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
| | | import com.yeshi.fanli.exception.goods.CommonGoodsException;
|
| | | import com.yeshi.fanli.exception.goods.ScanHistoryException;
|
| | |
|
| | | public interface ScanHistoryV2Service {
|
| | | /**
|
| | | * 添加浏览记录
|
| | | * |
| | | * @param uid
|
| | | * @param device
|
| | | * @param goods
|
| | | */
|
| | | public void addScanHistory(Long uid, String device, TaoBaoGoodsBrief goods)
|
| | | throws CommonGoodsException, ScanHistoryException;
|
| | |
|
| | | /**
|
| | | * 添加浏览记录
|
| | | * |
| | | * @param history
|
| | | * @throws CommonGoodsException
|
| | | * @throws ScanHistoryException
|
| | | */
|
| | | public void addScanHistory(ScanHistoryV2 history) throws CommonGoodsException, ScanHistoryException;
|
| | |
|
| | | /**
|
| | | * 根据设备或者用户ID获取浏览记录
|
| | | * |
| | | * @param uid
|
| | | * @param device
|
| | | * @param page
|
| | | * @param pageSize
|
| | | * @return
|
| | | */
|
| | | public List<ScanHistoryV2> getScanHistoryByDeviceOrUid(Long uid, String device, int page, int pageSize);
|
| | |
|
| | | /**
|
| | | * 根据设备或者用户ID获取浏览记录数量
|
| | | * |
| | | * @param uid
|
| | | * @param device
|
| | | * @return
|
| | | */
|
| | | public long getCountByDeviceOrUid(Long uid, String device);
|
| | |
|
| | | /**
|
| | | * 根据用户或者设备删除浏览记录
|
| | | * |
| | | * @param uid
|
| | | * @param device
|
| | | */
|
| | | public void deleteByDeviceOrUid(Long uid, String device);
|
| | |
|
| | | /**
|
| | | * 根据用户或者设备和淘宝商品ID删除浏览记录
|
| | | * |
| | | * @param uid
|
| | | * @param device
|
| | | * @param auctionId
|
| | | */
|
| | | public void deleteByAuctionIdAndDeviceOrUid(Long uid, String device, Long auctionId);
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.goods; |
| | | |
| | | 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.ScanHistoryV2; |
| | | import com.yeshi.fanli.entity.jd.JDGoods; |
| | | import com.yeshi.fanli.util.goods.douyin.vo.DYGoodsDetail; |
| | | import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief; |
| | | import com.yeshi.fanli.exception.goods.CommonGoodsException; |
| | | import com.yeshi.fanli.exception.goods.ScanHistoryException; |
| | | |
| | | public interface ScanHistoryV2Service { |
| | | /** |
| | | * 添加浏览记录 |
| | | * |
| | | * @param uid |
| | | * @param device |
| | | * @param goods |
| | | */ |
| | | public void addScanHistory(Long uid, String device, TaoBaoGoodsBrief goods) |
| | | throws CommonGoodsException, ScanHistoryException; |
| | | |
| | | /** |
| | | * 添加浏览记录 |
| | | * |
| | | * @param history |
| | | * @throws CommonGoodsException |
| | | * @throws ScanHistoryException |
| | | */ |
| | | public void addScanHistory(ScanHistoryV2 history) throws CommonGoodsException, ScanHistoryException; |
| | | |
| | | /** |
| | | * 根据设备或者用户ID获取浏览记录 |
| | | * |
| | | * @param uid |
| | | * @param device |
| | | * @param page |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | public List<ScanHistoryV2> getScanHistoryByDeviceOrUid(Long uid, String device, int page, int pageSize, |
| | | Integer source, boolean notBackSuVip); |
| | | |
| | | /** |
| | | * 根据设备或者用户ID获取浏览记录数量 |
| | | * |
| | | * @param uid |
| | | * @param device |
| | | * @return |
| | | */ |
| | | public long getCountByDeviceOrUid(Long uid, String device, Integer source, boolean notBackSuVip); |
| | | |
| | | /** |
| | | * 根据用户或者设备删除浏览记录 |
| | | * |
| | | * @param uid |
| | | * @param device |
| | | */ |
| | | public void deleteByDeviceOrUid(Long uid, String device); |
| | | |
| | | /** |
| | | * 根据用户或者设备和淘宝商品ID删除浏览记录 |
| | | * |
| | | * @param uid |
| | | * @param device |
| | | * @param auctionId |
| | | */ |
| | | public void deleteByAuctionIdAndDeviceOrUid(Long uid, String device, String auctionId); |
| | | |
| | | /** |
| | | * 添加京东商品足迹记录 |
| | | * @param uid |
| | | * @param device |
| | | * @param goods |
| | | * @throws CommonGoodsException |
| | | * @throws ScanHistoryException |
| | | */ |
| | | public void addJDScanHistory(Long uid, String device, JDGoods goods) throws CommonGoodsException, ScanHistoryException; |
| | | |
| | | /** |
| | | * 添加拼多多商品足迹记录 |
| | | * @param uid |
| | | * @param device |
| | | * @param pddGoods |
| | | * @throws CommonGoodsException |
| | | * @throws ScanHistoryException |
| | | */ |
| | | public void addPDDScanHistory(Long uid, String device, PDDGoodsDetail pddGoods) |
| | | throws CommonGoodsException, ScanHistoryException; |
| | | |
| | | |
| | | /** |
| | | * 唯品会浏览记录 |
| | | * @Title: addVIPScanHistory |
| | | * @Description: |
| | | * @param uid |
| | | * @param device |
| | | * @param pddGoods |
| | | * @throws CommonGoodsException |
| | | * @throws ScanHistoryException |
| | | * void 返回类型 |
| | | * @throws |
| | | */ |
| | | public void addVIPScanHistory(Long uid, String device, VIPGoodsInfo pddGoods) |
| | | throws CommonGoodsException, ScanHistoryException; |
| | | |
| | | |
| | | /** |
| | | * 苏宁浏览记录 |
| | | * @Title: addSuningScanHistory |
| | | * @Description: |
| | | * @param uid |
| | | * @param device |
| | | * @param suningGoods |
| | | * @throws CommonGoodsException |
| | | * @throws ScanHistoryException |
| | | * void 返回类型 |
| | | * @throws |
| | | */ |
| | | public void addSuningScanHistory(Long uid, String device, SuningGoodsInfo suningGoods) |
| | | throws CommonGoodsException, ScanHistoryException; |
| | | |
| | | |
| | | /** |
| | | * 抖音浏览记录 |
| | | * @Title: addSuningScanHistory |
| | | * @Description: |
| | | * @param uid |
| | | * @param device |
| | | * @param dyGoods |
| | | * @throws CommonGoodsException |
| | | * @throws ScanHistoryException |
| | | * void 返回类型 |
| | | * @throws |
| | | */ |
| | | public void addDYScanHistory(Long uid, String device, DYGoodsDetail dyGoods) |
| | | throws CommonGoodsException, ScanHistoryException; |
| | | |
| | | |
| | | /** |
| | | * 根据简版商品ID删除 |
| | | * @param uid |
| | | * @param device |
| | | * @param commonId |
| | | */ |
| | | public void deleteByCommonIdAndDeviceOrUid(Long uid, String device, Long commonId); |
| | | } |