-
-
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.
🆕 #1686 微信公众号增加对话能力(原导购助手)部分接口,如添加顾问、获取顾问信息等
- Loading branch information
1 parent
64402ab
commit 6948044
Showing
15 changed files
with
389 additions
and
121 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
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
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
54 changes: 54 additions & 0 deletions
54
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideService.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,54 @@ | ||
package me.chanjar.weixin.mp.api; | ||
|
||
import me.chanjar.weixin.common.error.WxErrorException; | ||
import me.chanjar.weixin.mp.bean.guide.WxMpGuideInfo; | ||
|
||
/** | ||
* 微信导购助手(现在叫对话能力)接口. | ||
* | ||
* @author <a href="https://github.com/binarywang">Binary Wang</a> | ||
* @date 2020 -10-06 | ||
*/ | ||
public interface WxMpGuideService { | ||
/** | ||
* 为服务号添加顾问 | ||
* <pre> | ||
* 请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/addguideacct?access_token=ACCESS_TOKEN | ||
* 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/guide-account/shopping-guide.addGuideAcct.html | ||
* </pre> | ||
* | ||
* @param account 顾问微信号(guide_account和guide_openid二选一,若同时请求,默认为guide_account) | ||
* @param openid 顾问openid或者unionid(guide_account和guide_openid二选一) | ||
* @param headImgUrl 顾问头像,头像url只能用《上传图文消息内的图片获取URL》 me.chanjar.weixin.mp.api.impl.WxMpMaterialServiceImpl#mediaImgUpload(java.io.File) | ||
* @param nickName 顾问昵称 | ||
* @throws WxErrorException . | ||
*/ | ||
void addGuide(String account, String openid, String headImgUrl, String nickName) throws WxErrorException; | ||
|
||
/** | ||
* 为服务号添加顾问 | ||
* <pre> | ||
* 请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/addguideacct?access_token=ACCESS_TOKEN | ||
* 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/guide-account/shopping-guide.addGuideAcct.html | ||
* </pre> | ||
* | ||
* @param guideInfo 顾问信息 | ||
* @throws WxErrorException . | ||
*/ | ||
void addGuide(WxMpGuideInfo guideInfo) throws WxErrorException; | ||
|
||
/** | ||
* 获取顾问信息 | ||
* | ||
* <pre> | ||
* 请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/getguideacct?access_token=ACCESS_TOKEN | ||
* 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/guide-account/shopping-guide.getGuideAcct.html | ||
* </pre> | ||
* | ||
* @param account 顾问微信号(guide_account和guide_openid二选一,若同时请求,默认为guide_account) | ||
* @param openid 顾问openid或者unionid(guide_account和guide_openid二选一) | ||
* @return 顾问信息 | ||
* @throws WxErrorException . | ||
*/ | ||
WxMpGuideInfo getGuide(String account, String openid) throws WxErrorException; | ||
} |
Oops, something went wrong.