package com.gxwebsoft.common.system.param;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 登录参数
 *
 * @author WebSoft
 * @since 2021-08-30 17:35:16
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "登录参数")
public class LoginParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "账号")
    private String userId;

    @Schema(description = "账号")
    private String username;

    @Schema(description = "手机号码")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "短信验证码")
    private String code;

    @Schema(description = "短信验证码(别名)")
    private String smsCode;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "是否管理员")
    private Boolean isAdmin;

    @Schema(description = "是否超级管理员")
    private Boolean isSuperAdmin;

    @Schema(description = "应用安装状态")
    private Boolean installed;

    @Schema(description = "模板id")
    private Integer templateId;

    @Schema(description = "记住我")
    private Boolean remember;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "审核状态: 0待审核, 1已通过, 2已拒绝（前端传值决定注册是否走审核流程）")
    private Integer auditStatus;

}
