package com.gxwebsoft.common.core.dto.qr;

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

import javax.validation.constraints.NotBlank;

/**
 * 使token失效请求DTO
 *
 * @author WebSoft
 * @since 2025-08-18
 */
@Schema(description = "使token失效请求")
public class InvalidateTokenRequest {

    @Schema(description = "要使失效的token", required = true, example = "abc123def456")
    @NotBlank(message = "token不能为空")
    private String token;

    // 构造函数
    public InvalidateTokenRequest() {}

    public InvalidateTokenRequest(String token) {
        this.token = token;
    }

    // Getter和Setter方法
    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return "InvalidateTokenRequest{" +
                "token='" + token + '\'' +
                '}';
    }
}
