-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🆕 #3427【视频号】新增罗盘商家版API、微信小店合作账号API相关接口以及订单待发货消息回调
- Loading branch information
Showing
62 changed files
with
1,869 additions
and
34 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
126 changes: 126 additions & 0 deletions
126
...java-channel/src/main/java/me/chanjar/weixin/channel/api/WxChannelCompassShopService.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,126 @@ | ||
package me.chanjar.weixin.channel.api; | ||
|
||
import me.chanjar.weixin.channel.bean.compass.shop.FinderAuthListResponse; | ||
import me.chanjar.weixin.channel.bean.compass.shop.FinderListResponse; | ||
import me.chanjar.weixin.channel.bean.compass.shop.FinderOverallResponse; | ||
import me.chanjar.weixin.channel.bean.compass.shop.FinderProductListResponse; | ||
import me.chanjar.weixin.channel.bean.compass.shop.FinderProductOverallResponse; | ||
import me.chanjar.weixin.channel.bean.compass.shop.ShopLiveListResponse; | ||
import me.chanjar.weixin.channel.bean.compass.shop.ShopOverallResponse; | ||
import me.chanjar.weixin.channel.bean.compass.shop.ShopProductDataResponse; | ||
import me.chanjar.weixin.channel.bean.compass.shop.ShopProductListResponse; | ||
import me.chanjar.weixin.channel.bean.compass.shop.ShopSaleProfileDataResponse; | ||
import me.chanjar.weixin.common.error.WxErrorException; | ||
|
||
/** | ||
* 视频号/微信小店 罗盘商家版服务 | ||
* | ||
* @author <a href="https://github.com/lixize">Zeyes</a> | ||
*/ | ||
public interface WxChannelCompassShopService { | ||
|
||
/** | ||
* 获取电商概览数据 | ||
* | ||
* @param ds 日期,格式 yyyyMMdd | ||
* @return 电商概览数据 | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
ShopOverallResponse getShopOverall(String ds) throws WxErrorException; | ||
|
||
/** | ||
* 获取授权视频号列表 | ||
* | ||
* @return 获取授权视频号列表 | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
FinderAuthListResponse getFinderAuthorizationList() throws WxErrorException; | ||
|
||
/** | ||
* 获取带货达人列表 | ||
* | ||
* @param ds 日期,格式 yyyyMMdd | ||
* @return 带货达人列表 | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
FinderListResponse getFinderList(String ds) throws WxErrorException; | ||
|
||
/** | ||
* 获取带货数据概览 | ||
* | ||
* @param ds 日期,格式 yyyyMMdd | ||
* @return 带货数据概览 | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
FinderOverallResponse getFinderOverall(String ds) throws WxErrorException; | ||
|
||
/** | ||
* 获取带货达人商品列表 | ||
* | ||
* @param ds 日期,格式YYYYMMDD | ||
* @param finderId 视频号ID | ||
* @return 带货达人商品列表 | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
FinderProductListResponse getFinderProductList(String ds, String finderId) throws WxErrorException; | ||
|
||
/** | ||
* 获取带货达人详情 | ||
* | ||
* @param ds 日期,格式YYYYMMDD | ||
* @param finderId 视频号ID | ||
* @return 带货达人详情 | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
FinderProductOverallResponse getFinderProductOverall(String ds, String finderId) throws WxErrorException; | ||
|
||
/** | ||
* 获取店铺开播列表 | ||
* | ||
* @param ds 日期,格式YYYYMMDD | ||
* @param finderId 视频号ID | ||
* @return 店铺开播列表 | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
ShopLiveListResponse getShopLiveList(String ds, String finderId) throws WxErrorException; | ||
|
||
/** | ||
* 获取商品详细信息 | ||
* | ||
* @param ds 日期,格式YYYYMMDD | ||
* @param productId 商品id | ||
* @return 商品详细信息 | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
ShopProductDataResponse getShopProductData(String ds, String productId) throws WxErrorException; | ||
|
||
/** | ||
* 获取商品列表 | ||
* | ||
* @param ds 日期,格式YYYYMMDD | ||
* @return 商品列表 | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
ShopProductListResponse getShopProductList(String ds) throws WxErrorException; | ||
|
||
/** | ||
* 获取店铺人群数据 | ||
* | ||
* @param ds 日期,格式 yyyyMMdd | ||
* @param type 用户类型,1商品曝光用户 2商品点击用户 3购买用户 4首购用户 5复购用户 | ||
* @return 店铺人群数据 | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
ShopSaleProfileDataResponse getShopSaleProfileData(String ds, Integer type) throws WxErrorException; | ||
|
||
} |
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
70 changes: 70 additions & 0 deletions
70
...n-java-channel/src/main/java/me/chanjar/weixin/channel/api/WxStoreCooperationService.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,70 @@ | ||
package me.chanjar.weixin.channel.api; | ||
|
||
import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; | ||
import me.chanjar.weixin.channel.bean.cooperation.CooperationListResponse; | ||
import me.chanjar.weixin.channel.bean.cooperation.CooperationQrCodeResponse; | ||
import me.chanjar.weixin.channel.bean.cooperation.CooperationStatusResponse; | ||
import me.chanjar.weixin.common.error.WxErrorException; | ||
|
||
/** | ||
* 微信小店 合作账号相关接口 | ||
* | ||
* @author <a href="https://github.com/lixize">Zeyes</a> | ||
* @see <a href="https://developers.weixin.qq.com/doc/store/API/cooperation/">合作账号状态机</a> | ||
*/ | ||
public interface WxStoreCooperationService { | ||
|
||
/** | ||
* 获取合作账号列表 | ||
* | ||
* @param sharerType 合作账号类型 2公众号 3小程序 | ||
* @return 合作账号列表 | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
CooperationListResponse listCooperation(Integer sharerType) throws WxErrorException; | ||
|
||
/** | ||
* 获取合作账号状态 | ||
* | ||
* @param sharerId 合作账号id 公众号: gh_开头id 小程序: appid | ||
* @param sharerType 合作账号类型 2公众号 3小程序 | ||
* @return 合作账号状态 | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
CooperationStatusResponse getCooperationStatus(String sharerId, Integer sharerType) throws WxErrorException; | ||
|
||
/** | ||
* 生成合作账号邀请二维码 | ||
* | ||
* @param sharerId 合作账号id 公众号: gh_开头id 小程序: appid | ||
* @param sharerType 合作账号类型 2公众号 3小程序 | ||
* @return 二维码 | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
CooperationQrCodeResponse generateQrCode(String sharerId, Integer sharerType) throws WxErrorException; | ||
|
||
/** | ||
* 取消合作账号邀请 | ||
* | ||
* @param sharerId 合作账号id 公众号: gh_开头id 小程序: appid | ||
* @param sharerType 合作账号类型 2公众号 3小程序 | ||
* @return WxChannelBaseResponse | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
WxChannelBaseResponse cancelInvitation(String sharerId, Integer sharerType) throws WxErrorException; | ||
|
||
/** | ||
* 解绑合作账号 | ||
* | ||
* @param sharerId 合作账号id 公众号: gh_开头id 小程序: appid | ||
* @param sharerType 合作账号类型 2公众号 3小程序 | ||
* @return WxChannelBaseResponse | ||
* | ||
* @throws WxErrorException 异常 | ||
*/ | ||
WxChannelBaseResponse unbind(String sharerId, Integer sharerType) throws WxErrorException; | ||
} |
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
Oops, something went wrong.