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

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

import javax.validation.constraints.NotBlank;

/**
 * 验证二维码内容请求DTO
 *
 * @author WebSoft
 * @since 2025-08-18
 */
@Schema(description = "验证二维码内容请求")
public class VerifyQrContentRequest {

    @Schema(description = "二维码扫描得到的完整内容", required = true, example = "qr_content_string")
    @NotBlank(message = "二维码内容不能为空")
    private String qrContent;

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

    public VerifyQrContentRequest(String qrContent) {
        this.qrContent = qrContent;
    }

    // Getter和Setter方法
    public String getQrContent() {
        return qrContent;
    }

    public void setQrContent(String qrContent) {
        this.qrContent = qrContent;
    }

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