package shop.alien.dining.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Token 校验结果VO
 *
 * @author ssk
 * @version 1.0
 * @date 2024/12/4
 */
@Data
@ApiModel("Token校验结果")
public class TokenVerifyVo {

    @ApiModelProperty(value = "Token是否有效")
    private Boolean valid;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "用户手机号")
    private String phone;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "微信OpenID")
    private String openid;

    @ApiModelProperty(value = "Token过期时间")
    private Date expirationTime;

    @ApiModelProperty(value = "验证失败原因")
    private String reason;
}
