From 81da61b828e29b7745e1382dfbbaeb685dc083ef Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 23 一月 2024 17:17:55 +0800 Subject: [PATCH] 抖音转链修改 --- fanli/src/main/java/com/yeshi/fanli/service/inter/goods/ShareGoodsService.java | 227 ++++++++++++++++++++------------------------------------ 1 files changed, 81 insertions(+), 146 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/ShareGoodsService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/ShareGoodsService.java index f2159e3..ade8cc8 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/ShareGoodsService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/ShareGoodsService.java @@ -1,146 +1,81 @@ -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.entity.taobao.TaoKeAppInfo; -import com.yeshi.fanli.exception.share.ShareGoodsException; -import com.yeshi.fanli.exception.tlj.TaoLiJinCreateException; - -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; - - /** - * 鐢ㄤ細鍛樿繍钀D鑾峰彇鍟嗗搧鐨勫垎浜浆閾鹃摼鎺� - * - * @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,TaoKeAppInfo app) throws ShareGoodsException,TaoLiJinCreateException; - -} +package com.yeshi.fanli.service.inter.goods; + +import com.yeshi.fanli.entity.bus.share.UserShareGoodsHistory; +import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief; +import com.yeshi.fanli.entity.taobao.TaoBaoLink; +import com.yeshi.common.entity.taobao.TaoKeAppInfo; +import com.yeshi.fanli.exception.share.ShareGoodsException; +import com.yeshi.fanli.exception.tlj.TaoLiJinCreateException; + +public interface ShareGoodsService { + + /** + * 娣诲姞鍒嗕韩璁板綍 + * + * @param history + * @return + * @throws ShareGoodsException + */ + public void addShareGoodsHistory(UserShareGoodsHistory history); + + /** + * 娣诲姞鍒嗕韩璁板綍 + * + * @param uid + * @param auctionId + */ + public UserShareGoodsHistory addShareGoodsHistory(Long uid, String 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, String auctionId) throws ShareGoodsException; + + /** + * 鑾峰彇鍒嗕韩璁板綍 + * + * @param uid + * @param auctionId + * @return + */ + public UserShareGoodsHistory getShareGoodsHistory(Long uid, String auctionId); + + + /** + * 閫氳繃PID璁剧疆閾炬帴 + * + * @param uid + * @param auctionId + * @param pid + * @return + * @throws ShareGoodsException + */ + public TaoBaoLink getTaoBaoLink(Long uid, String auctionId, String pid) throws ShareGoodsException; + + /** + * + * @param uid + * @param auctionId + * @return + * @throws ShareGoodsException + */ + public TaoBaoLink getTaoLiJinLinkForBuyWithOutFanLi(Long uid, String auctionId,TaoKeAppInfo app) throws ShareGoodsException,TaoLiJinCreateException; + + public String createTaoBaoToken(Long uid, TaoBaoGoodsBrief goods); + +} -- Gitblit v1.8.0