package com.ho.user.vo.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;


@Data
public class LoginReqVO {

    @ApiModelProperty(value = "账号或手机号")
    @NotBlank(message = "账号或手机号不能为空")
    @Length(min = 1, max = 50,message = "账号或手机号不能超过50个字符")
    private String username;

    @ApiModelProperty(value = "用户密码")
    @NotBlank(message = "密码不能为空")
    @Length(min = 1, max = 500,message = "密码不能超过50个字符")
    private String password;

    @ApiModelProperty(value = "登录类型(1:pc;2:app)")
    @NotBlank(message = "登录类型不能为空")
    private String type;

    @ApiModelProperty(hidden = true,value = "登陆方式, account phone")
    private String loginType;

    @ApiModelProperty(value = "aesKey")
    private String aesKey;

    @ApiModelProperty(value = "iv")
    private String iv;

    @ApiModelProperty(value = "组态(组态：config,空值为非组态)")
    private String configType;
}
