package com.snack.server.module.admin.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 登录成功返回
 */
@Data
@Schema(description = "登录返回信息")
public class LoginVO implements Serializable {

    @Schema(description = "访问 Token（前端存储，后续请求需在 Header 中携带）")
    private String token;

    @Schema(description = "Token 类型", example = "Bearer")
    private String tokenType = "Bearer";

    @Schema(description = "过期时间（秒）")
    private Long expiresIn;

    @Schema(description = "管理员信息")
    private AdminVO adminInfo;
}
