mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🆕 #1806 开放平台增加第三方平台代公众号实现复用公众号资料快速创建小程序的接口
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
package me.chanjar.weixin.open.bean.mp;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 复用公众号资料快速注册小程序结果
|
||||
*
|
||||
* @author someone
|
||||
*/
|
||||
@Data
|
||||
public class FastRegisterResult implements Serializable {
|
||||
private static final long serialVersionUID = 9046726183433147089L;
|
||||
|
||||
/**
|
||||
* 小程序AppId
|
||||
*/
|
||||
@SerializedName("appid")
|
||||
private String appId;
|
||||
|
||||
/**
|
||||
* 授权码,然后请使用第三方平台的sdk获得授权, 参考: WxOpenService.getWxOpenComponentService().getQueryAuth( this.getAuthorizationCode() );
|
||||
*/
|
||||
@SerializedName("authorization_code")
|
||||
private String authorizationCode;
|
||||
|
||||
/**
|
||||
* 是否与公众号关联成功
|
||||
*/
|
||||
@SerializedName("is_wx_verify_succ")
|
||||
private Boolean isWxVerifySucc;
|
||||
|
||||
public static FastRegisterResult fromJson(String json) {
|
||||
return WxGsonBuilder.create().fromJson(json, FastRegisterResult.class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user