45 lines
1.4 KiB
Java
45 lines
1.4 KiB
Java
package com.xinelu.common.entity;
|
||
|
||
import com.alibaba.fastjson2.annotation.JSONField;
|
||
import lombok.Data;
|
||
|
||
import java.io.Serializable;
|
||
|
||
/**
|
||
* @Description 微信小程序和微信公众号accessToken信息实体类
|
||
* @Author 纪寒
|
||
* @Date 2024-03-21 14:00:10
|
||
* @Version 1.0
|
||
*/
|
||
@Data
|
||
public class AccessToken implements Serializable {
|
||
private static final long serialVersionUID = -7751995012730354177L;
|
||
/**
|
||
* accessToken值
|
||
*/
|
||
@JSONField(name = "access_token")
|
||
private String accessToken;
|
||
|
||
/**
|
||
* access_token有效时间,有效时间为7200秒
|
||
*/
|
||
@JSONField(name = "expires_in")
|
||
private String expiresIn;
|
||
|
||
/**
|
||
* 错误状态码
|
||
* 40001:AppSecret 错误或者 AppSecret 不属于这个小程序,请开发者确认 AppSecret 的正确性
|
||
* 40002:请确保 grant_type 字段值为 client_credential
|
||
* 40013:不合法的 AppID,请开发者检查 AppID 的正确性,避免异常字符,注意大小写
|
||
*/
|
||
private Integer errcode;
|
||
|
||
/**
|
||
* 错误状态值
|
||
* 40001:AppSecret 错误或者 AppSecret 不属于这个小程序,请开发者确认 AppSecret 的正确性
|
||
* 40002:请确保 grant_type 字段值为 client_credential
|
||
* 40013:不合法的 AppID,请开发者检查 AppID 的正确性,避免异常字符,注意大小写
|
||
*/
|
||
private String errmsg;
|
||
}
|