mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-28 04:29:07 +08:00
🆕 #2385 【开放平台】 增加为小程序设置用户隐私指引的相关接口
This commit is contained in:
@ -2,6 +2,7 @@ package me.chanjar.weixin.common.error;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import me.chanjar.weixin.common.enums.WxType;
|
||||
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
@ -17,6 +18,7 @@ import java.io.Serializable;
|
||||
* @author Daniel Qian & Binary Wang
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
public class WxError implements Serializable {
|
||||
private static final long serialVersionUID = 7869786563361406291L;
|
||||
@ -39,6 +41,11 @@ public class WxError implements Serializable {
|
||||
|
||||
private String json;
|
||||
|
||||
public WxError(int errorCode, String errorMsg) {
|
||||
this.errorCode = errorCode;
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
|
||||
public static WxError fromJson(String json) {
|
||||
return fromJson(json, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user