mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-06-28 13:16:19 +08:00
🎨 #3438 【企业微信】第三方应用开发获取登录/访问用户身份接口返回字段调整
This commit is contained in:
parent
a4e3af0eb6
commit
7494de9d4f
@ -13,31 +13,24 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class WxCpTpUserInfo extends WxCpBaseResp {
|
||||
|
||||
private static final long serialVersionUID = -5028321625140879571L;
|
||||
|
||||
/**
|
||||
* 用户所属企业的corpid
|
||||
*/
|
||||
@SerializedName("CorpId")
|
||||
@SerializedName("corpid")
|
||||
private String corpId;
|
||||
|
||||
/**
|
||||
* 用户在企业内的UserID,如果该企业与第三方应用有授权关系时,返回明文UserId,否则返回密文UserId
|
||||
*/
|
||||
@SerializedName("UserId")
|
||||
@SerializedName("userid")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 手机设备号(由企业微信在安装时随机生成,删除重装会改变,升级不受影响)
|
||||
*/
|
||||
@SerializedName("DeviceId")
|
||||
private String deviceId;
|
||||
|
||||
/**
|
||||
* 成员票据,最大为512字节。
|
||||
* scope为snsapi_userinfo或snsapi_privateinfo,且用户在应用可见范围之内时返回此参数。
|
||||
* 后续利用该参数可以获取用户信息或敏感信息,参见:https://work.weixin.qq.com/api/doc/90001/90143/91122
|
||||
* 后续利用该参数可以获取用户信息或敏感信息,参见:<a href="https://work.weixin.qq.com/api/doc/90001/90143/91122">...</a>
|
||||
*/
|
||||
@SerializedName("user_ticket")
|
||||
private String userTicket;
|
||||
@ -54,6 +47,12 @@ public class WxCpTpUserInfo extends WxCpBaseResp {
|
||||
@SerializedName("open_userid")
|
||||
private String openUserId;
|
||||
|
||||
/**
|
||||
非企业成员的标识,对当前服务商唯一
|
||||
*/
|
||||
@SerializedName("openid")
|
||||
private String openid;
|
||||
|
||||
/**
|
||||
* From json wx cp tp user info.
|
||||
*
|
||||
@ -64,8 +63,4 @@ public class WxCpTpUserInfo extends WxCpBaseResp {
|
||||
return WxCpGsonBuilder.create().fromJson(json, WxCpTpUserInfo.class);
|
||||
}
|
||||
|
||||
public String toJson() {
|
||||
return WxCpGsonBuilder.create().toJson(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -371,7 +371,9 @@ public interface WxCpTpService {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 获取访问用户身份
|
||||
* 获取登录/访问用户身份
|
||||
* 1、<a href="https://developer.work.weixin.qq.com/document/path/91121">网页授权登录对应的文档</a>
|
||||
* 2、<a href="https://developer.work.weixin.qq.com/document/path/98179">企业微信web登录对应的文档</a>
|
||||
* </pre>
|
||||
*
|
||||
* @param code the code
|
||||
|
Loading…
Reference in New Issue
Block a user