package com.backendsys.modules.system.entity;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class SysAuth {

    public static interface Login{}
    public static interface Register{}

    private Long user_id;
    @NotEmpty(message="用户名不能为空", groups = { Login.class, Register.class })
    @Size(min = 2, max = 20, message = "用户名长度在 {min}-{max} 字符", groups = { Login.class, Register.class })
    private String username;

    @NotEmpty(message="密码不能为空", groups = { Login.class, Register.class })
    private String password;

    // @NotEmpty(message="验证码不能为空", groups = { Login.class, Register.class })
    private String captcha;

    private Integer is_remember;
}
