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 jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@Schema(description = "登录请求实体类")
public class LoginParam {

    @Schema(description = "登录方式不可为空")
    @NotBlank(message = "loginType不可为空")
    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;

}