package com.ssyf.module.auth.domain.query;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
* @author: auth
* @date: 2022-10-30
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class UsernameInfoQuery implements Serializable {
    /**
     * 用户名称
     */
//    @Length(min = 5 ,max = 32 ,message = "{user.username.length}")
    @NotNull(message = "{notnull}")
    private String username;

    /**
     * 密码
     */
//    @Length(min = 5 ,max = 20 ,message = "{user.password.length}")
    @NotNull(message = "{notnull}")
    private String password;

}
