Skip to content

[Feature] 新增赠品和买赠活动模块支持 #3986

@binarywang

Description

@binarywang

功能描述

赠品和买赠活动是电商常用营销功能,目前WxJava完全未实现该模块。

官方文档

需要实现的接口列表(9个)

赠品管理(6个)

接口名称 请求路径
添加非卖商品 /channels/ec/product/gift/add
更新非卖商品 /channels/ec/product/gift/update
在售商品转赠品 /channels/ec/product/gift/onsale/set
获取赠品 /channels/ec/product/gift/get
获取赠品列表 /channels/ec/product/gift/list/get
更新赠品库存 /channels/ec/product/gift/stock/update

买赠活动(3个)

接口名称 请求路径
创建赠品活动 /channels/ec/product/activity/add
删除赠品活动 /channels/ec/product/activity/del
停止赠品活动 /channels/ec/product/activity/stop

实现要点

建议在 WxChannelProductService 中新增以下方法:

// 赠品管理
String addGiftProduct(GiftProductInfo info) throws WxErrorException;
void updateGiftProduct(GiftProductInfo info) throws WxErrorException;
void setProductAsGift(String productId) throws WxErrorException;
GiftProductInfo getGiftProduct(String productId) throws WxErrorException;
GiftProductListResponse listGiftProduct(GiftProductListParam param) throws WxErrorException;
void updateGiftStock(String productId, String skuId, Integer stock) throws WxErrorException;

// 买赠活动
String addGiftActivity(GiftActivityInfo info) throws WxErrorException;
void deleteGiftActivity(String activityId) throws WxErrorException;
void stopGiftActivity(String activityId) throws WxErrorException;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions