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

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

    @Schema(description = "门店业务密钥", required = true, example = "store_key_123")
    @NotBlank(message = "业务密钥不能为空")
    private String businessKey;

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

    public VerifyBusinessQrRequest(String qrContent, String businessKey) {
        this.qrContent = qrContent;
        this.businessKey = businessKey;
    }

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

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

    public String getBusinessKey() {
        return businessKey;
    }

    public void setBusinessKey(String businessKey) {
        this.businessKey = businessKey;
    }

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