package com.seer.teach.user.app.auth.request;

import com.seer.teach.user.app.auth.LoginType;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import jakarta.validation.constraints.NotBlank;

/**
 * @Author: Captain
 * @Description: 微信小程序登录请求参数
 * @Date: 2025-05-19 17:46
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@Schema(description = "微信登录请求实体类")
public class WeChatLoginParam {

    LoginType loginType;

    @Schema(description = "jsCode不可为空")
    @NotBlank(message = "jsCode不可为空")
    private String jsCode;

    private String appId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "账户")
    @NotBlank(message = "账户不可为空")
    private String phoneNumber;

    @Schema(description = "密码")
    @NotBlank(message = "密码不可为空")
    private String password;

    @Schema(description = "场景值")
    private String scene;

}