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

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

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

/**
 * @author reghao
 * @date 2021-07-15 14:06:13
 */
@NoArgsConstructor
@Setter
@Getter
public class MenuDto {
    @NotNull(message = "菜单 ID 不能为 NULL")
    private Integer menuId;
    @NotNull
    @NotBlank(message = "菜单名不能为空白字符串")
    private String name;
    @NotNull
    @NotBlank(message = "icon 不能为空白字符串")
    private String icon;
    @NotNull(message = "visible 不能为 NULL")
    private Integer visible;
}
