-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎨 #2715【企业微信&小程序】微信客服、小程序物流服务和交易组件 等相关接口优化更新
- Loading branch information
Showing
51 changed files
with
2,141 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...in-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceUpgradeConfigResp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package me.chanjar.weixin.cp.bean.kf; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import java.util.List; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
/** | ||
* @author leiin | ||
* @date 2022/4/26 5:21 下午 | ||
*/ | ||
@EqualsAndHashCode(callSuper = true) | ||
@NoArgsConstructor | ||
@Data | ||
public class WxCpKfServiceUpgradeConfigResp extends WxCpBaseResp { | ||
|
||
private static final long serialVersionUID = -3212550906238196617L; | ||
|
||
@SerializedName("member_range") | ||
private MemberRange memberRange; | ||
|
||
@SerializedName("groupchat_range") | ||
private GroupchatRange groupchatRange; | ||
|
||
public static WxCpKfServiceUpgradeConfigResp fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpKfServiceUpgradeConfigResp.class); | ||
} | ||
|
||
@Data | ||
@NoArgsConstructor | ||
public static class MemberRange { | ||
@SerializedName("userid_list") | ||
private List<String> useridList; | ||
|
||
@SerializedName("department_id_list") | ||
private List<Integer> departmentIdList; | ||
} | ||
|
||
@Data | ||
@NoArgsConstructor | ||
public static class GroupchatRange { | ||
@SerializedName("chat_id_list") | ||
private List<String> chatIdList; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 119 additions & 0 deletions
119
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaProductService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
package cn.binarywang.wx.miniapp.api; | ||
|
||
import cn.binarywang.wx.miniapp.bean.product.WxMinishopAddGoodsSkuData; | ||
import cn.binarywang.wx.miniapp.bean.product.WxMinishopAddGoodsSpuData; | ||
import cn.binarywang.wx.miniapp.bean.product.WxMinishopOrderListResponse; | ||
import cn.binarywang.wx.miniapp.bean.product.WxMinishopResult; | ||
import cn.binarywang.wx.miniapp.bean.product.WxMinishopSku; | ||
import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpu; | ||
import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpuGet; | ||
import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpuGetResponse; | ||
import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpuListResponse; | ||
import cn.binarywang.wx.miniapp.bean.product.WxMinishopUpdateGoodsSkuData; | ||
import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopSpuPageRequest; | ||
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse; | ||
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopGetSpuListResponse; | ||
import java.util.List; | ||
import me.chanjar.weixin.common.error.WxErrorException; | ||
|
||
/** | ||
* 小程序交易组件-商品服务 | ||
* | ||
* @author boris | ||
*/ | ||
public interface WxMaProductService { | ||
WxMinishopResult addSpu(WxMinishopSpu spuInfo) throws WxErrorException; | ||
|
||
WxMaShopBaseResponse deleteSpu(Integer productId, String outProductId) throws WxErrorException; | ||
|
||
WxMinishopSpuGetResponse getSpu(Integer productId, String outProductId, Integer needEditSpu) | ||
throws WxErrorException; | ||
|
||
WxMinishopSpuListResponse getSpuList(WxMaShopSpuPageRequest request) | ||
throws WxErrorException; | ||
|
||
WxMinishopResult<WxMinishopAddGoodsSpuData> updateSpu(WxMinishopSpu spuInfo) throws WxErrorException; | ||
|
||
WxMaShopBaseResponse listingSpu(Integer productId, String outProductId) | ||
throws WxErrorException; | ||
|
||
WxMaShopBaseResponse delistingSpu(Integer productId, String outProductId) | ||
throws WxErrorException; | ||
|
||
/** | ||
* 小商店新增sku信息 | ||
* | ||
* @param sku | ||
* @return | ||
* @throws WxErrorException | ||
*/ | ||
WxMinishopResult<WxMinishopAddGoodsSkuData> minishiopGoodsAddSku(WxMinishopSku sku) throws WxErrorException; | ||
|
||
|
||
/** | ||
* 小商店批量新增sku信息 | ||
* | ||
* @param skuList | ||
* @return | ||
* @throws WxErrorException | ||
*/ | ||
WxMinishopResult<List<WxMinishopAddGoodsSkuData>> minishopGoodsBatchAddSku(List<WxMinishopSku> skuList) throws WxErrorException; | ||
|
||
|
||
/** | ||
* 小商店删除sku消息 | ||
* | ||
* @param productId | ||
* @param outProductId | ||
* @param outSkuId | ||
* @param skuId | ||
* @return | ||
* @throws WxErrorException | ||
*/ | ||
WxMaShopBaseResponse minishopGoodsDelSku(Long productId, Long outProductId, String outSkuId, Long skuId) throws WxErrorException; | ||
|
||
|
||
/** | ||
* 小商店更新sku | ||
* | ||
* @param sku | ||
* @return | ||
* @throws WxErrorException | ||
*/ | ||
WxMinishopResult<WxMinishopUpdateGoodsSkuData> minishopGoodsUpdateSku(WxMinishopSku sku) throws WxErrorException; | ||
|
||
|
||
/** | ||
* 小商店更新sku价格 | ||
* | ||
* @param productId | ||
* @param outProductId | ||
* @param outSkuId | ||
* @param skuId | ||
* @param salePrice | ||
* @param marketPrice | ||
* @return | ||
* @throws WxErrorException | ||
*/ | ||
WxMinishopResult<WxMinishopUpdateGoodsSkuData> minishopGoodsUpdateSkuPrice(Long productId, | ||
Long outProductId, String outSkuId, Long skuId, Long salePrice, Long marketPrice) throws WxErrorException; | ||
|
||
|
||
/** | ||
* 小商店更新sku库存 | ||
* | ||
* @param productId | ||
* @param outProductId | ||
* @param outSkuId | ||
* @param skuId | ||
* @param type | ||
* @param stockNum | ||
* @return | ||
* @throws WxErrorException | ||
*/ | ||
WxMinishopResult<WxMinishopUpdateGoodsSkuData> minishopGoodsUpdateSkuStock(Long productId, | ||
Long outProductId, String outSkuId, Long skuId, Integer type, Integer stockNum) throws WxErrorException; | ||
|
||
WxMinishopOrderListResponse minishopOrderGetList(String startCreateTime, String endCreateTime, | ||
Integer status, Integer page, Integer pageSize, Integer source) throws WxErrorException; | ||
} |
Oops, something went wrong.