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 DecryptQrDataRequest {

    @Schema(description = "token密钥", required = true, example = "abc123def456")
    @NotBlank(message = "token不能为空")
    private String token;

    @Schema(description = "加密的数据", required = true, example = "encrypted_data_string")
    @NotBlank(message = "加密数据不能为空")
    private String encryptedData;

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

    public DecryptQrDataRequest(String token, String encryptedData) {
        this.token = token;
        this.encryptedData = encryptedData;
    }

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

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

    public String getEncryptedData() {
        return encryptedData;
    }

    public void setEncryptedData(String encryptedData) {
        this.encryptedData = encryptedData;
    }

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