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

cn.binarywang.wx.miniapp.bean.safety.response.WxMaUserSafetyRiskRankResponse Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package cn.binarywang.wx.miniapp.bean.safety.response;

import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;

import java.io.Serializable;

/**
 * 获取用户的安全等级响应参数
 *
 * @author azouever
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxMaUserSafetyRiskRankResponse implements Serializable {

  private static final long serialVersionUID = -2434941857751339150L;

  /**
   * 唯一请求标识,标记单次请求
   */
  @SerializedName("unoin_id")
  private Long unoinId;

  /**
   * 用户风险等级
   * 合法值 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/safety-control-capability/riskControl.getUserRiskRank.html
   */
  @SerializedName("risk_rank")
  private Integer riskRank;

  public static WxMaUserSafetyRiskRankResponse fromJson(String json) {
    return WxGsonBuilder.create().fromJson(json, WxMaUserSafetyRiskRankResponse.class);
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy