diff --git a/service/src/main/java/com/hfkj/model/PublishInfoModel.java b/service/src/main/java/com/hfkj/model/PublishInfoModel.java index 4853962..0f9c378 100644 --- a/service/src/main/java/com/hfkj/model/PublishInfoModel.java +++ b/service/src/main/java/com/hfkj/model/PublishInfoModel.java @@ -18,6 +18,16 @@ public class PublishInfoModel { */ String couponShareUrl; + /** + * 搜索id,建议生成推广链接时候填写,提高收 + */ + String searchId; + + /** + * 商品goodsSign,支持通过goodsSign查询商品 + */ + String goodsSign; + /** * 商品佣金信息 */ diff --git a/service/src/main/java/com/hfkj/service/goods/GoodsDataService.java b/service/src/main/java/com/hfkj/service/goods/GoodsDataService.java index 9ad12f2..0ff8305 100644 --- a/service/src/main/java/com/hfkj/service/goods/GoodsDataService.java +++ b/service/src/main/java/com/hfkj/service/goods/GoodsDataService.java @@ -22,4 +22,6 @@ public interface GoodsDataService { * @Date: 2024/9/13 下午2:41 */ List goodsModelTaoBaoList(JSONObject jsonObject); + + List goodsModelPddList(JSONObject jsonObject); } diff --git a/service/src/main/java/com/hfkj/service/goods/impl/GoodsDataServiceImpl.java b/service/src/main/java/com/hfkj/service/goods/impl/GoodsDataServiceImpl.java index 15c0aa9..0f3b0bf 100644 --- a/service/src/main/java/com/hfkj/service/goods/impl/GoodsDataServiceImpl.java +++ b/service/src/main/java/com/hfkj/service/goods/impl/GoodsDataServiceImpl.java @@ -11,6 +11,7 @@ import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Collections; import java.util.List; @Service("goodsDataService") @@ -118,4 +119,37 @@ public class GoodsDataServiceImpl implements GoodsDataService { return goodsModelList; } + + @Override + public List goodsModelPddList(JSONObject jsonObject) { + // 定义数据列表 + List goodsModelList = new ArrayList<>(); + GoodsModel goodsModel; + // 淘客推广信息 + PublishInfoModel publishInfoModel; + // 价格促销信息 + PricePromotionInfoModel pricePromotionInfoModel; + // 基础信息 + GoodsInfoModel goodsInfoModel; + // 商品佣金信息 + IncomeInfoModel incomeInfoModel; + // 更多活动优惠 + MorePromotionModel morePromotionModel; + List morePromotionModels; + + JSONArray array = jsonObject.getJSONObject("goodsSearchResponse").getJSONArray("goodsSearchResponse"); + + for (Object object : array) { + JSONObject goods = (JSONObject) object; + goodsModel = new GoodsModel(); + // 淘客推广信息 + // 商品佣金信息 + incomeInfoModel = new IncomeInfoModel(); + publishInfoModel = new PublishInfoModel(); + + + } + + return Collections.emptyList(); + } }