package com.seer.teach.mp.api.request;

import cn.binarywang.wx.miniapp.bean.WxMaCodeLineColor;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import jakarta.validation.constraints.NotBlank;

/**
 * @Author: Captain
 * @Description: 获取Qr码的请求参数
 * @Date: 2025-05-09 21:33
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class GetQrCodeReq {

    @NotBlank(message = "场景值不能为空")
    @Schema(description = "场景值", example = "1234567890")
    private String scene;

    @Schema(description = "页面路径", example = "pages/index/index")
    private String page;

    @Schema(description = "检查页面路径", example = "true")
    private boolean checkPath;

    @Schema(description = "环境版本", example = "release")
    private String envVersion;

    @Schema(description = "二维码宽度", example = "430")
    private int width;

    @Schema(description = "自动配置线条颜色", example = "false")
    private boolean autoColor;

    @Schema(description = "二维码线条颜色", example = "{\"r\":\"xxx\",\"g\":\"xxx\",\"b\":\"xxx\"}")
    private WxMaCodeLineColor lineColor;

    @Schema(description = "是否需要透明底色", example = "false")
    private boolean isHyaline;
}
