|
|
@@ -137,6 +137,23 @@ public interface WxCpUserService { |
|
|
|
*/ |
|
|
|
String openid2UserId(String openid) throws WxErrorException; |
|
|
|
|
|
|
|
/** |
|
|
|
* <pre> |
|
|
|
* |
|
|
|
* 通过手机号获取其所对应的userid。 |
|
|
|
* |
|
|
|
* 请求方式:POST(HTTPS) |
|
|
|
* 请求地址:https://qyapi.weixin.qq.com/cgi-bin/user/getuserid?access_token=ACCESS_TOKEN |
|
|
|
* |
|
|
|
* 文档地址:https://work.weixin.qq.com/api/doc#90001/90143/91693 |
|
|
|
* </pre> |
|
|
|
* |
|
|
|
* @param mobile 手机号码。长度为5~32个字节 |
|
|
|
* @return userid mobile对应的成员userid |
|
|
|
* @throws WxErrorException . |
|
|
|
*/ |
|
|
|
String getUserId(String mobile) throws WxErrorException; |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取外部联系人详情. |
|
|
|
* <pre> |
|
|
@@ -147,6 +164,8 @@ public interface WxCpUserService { |
|
|
|
* </pre> |
|
|
|
* |
|
|
|
* @param userId 外部联系人的userid |
|
|
|
* @return 联系人详情 |
|
|
|
* @throws WxErrorException . |
|
|
|
*/ |
|
|
|
WxCpUserExternalContactInfo getExternalContact(String userId) throws WxErrorException; |
|
|
|
|
|
|
|