All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.chanjar.weixin.cp.bean.WxCpUseridToOpenUserid Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package me.chanjar.weixin.cp.bean;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;

import java.io.Serializable;

/**
 * userid转换为open_userid
 * 将自建应用或代开发应用获取的userid转换为第三方应用的userid
 * 中间对象
 * Created by gxh0797 on 2022.07.26.
 */
@Data
public class WxCpUseridToOpenUserid implements Serializable {
  private static final long serialVersionUID = 1420065684270213578L;

  @Override
  public String toString() {
    return WxCpGsonBuilder.create().toJson(this);
  }

  /**
   * From json wx cp userid to open userid.
   *
   * @param json the json
   * @return the wx cp userid to open userid
   */
  public static WxCpUseridToOpenUserid fromJson(String json) {
    return WxCpGsonBuilder.create().fromJson(json, WxCpUseridToOpenUserid.class);
  }

  @SerializedName("userid")
  private String userid;

  @SerializedName("open_userid")
  private String openUserid;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy