package com.gxwebsoft.auto.dto;

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

import javax.validation.constraints.NotBlank;

/**
 * 微信扫码登录请求（用于 H5 页面回调）
 *
 * @author 科技小王子
 * @since 2026-04-06
 */
@Data
@Schema(description = "微信扫码登录请求")
public class WechatScanRequest {

    @Schema(description = "扫码登录token")
    @NotBlank(message = "token不能为空")
    private String token;

    @Schema(description = "微信公众号授权code")
    private String code;

    @Schema(description = "微信unionId（如果已获取）")
    private String unionId;

    @Schema(description = "微信openId")
    private String openId;

}
