package cn.reghao.bnt.web.admin.model.dto;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * @author reghao
 * @date 2023-02-18 17:46:15
 */
@Setter
@Getter
public class UpdateUsernameDto {
    @NotNull(message = "username 不能为 null")
    @Length(min = 6, max = 10, message = "username 长度在 6 ~ 10 个字符")
    private String newUsername;
}
