This commit is contained in:
cwchen 2024-02-27 17:51:39 +08:00
parent 155819f5d2
commit 8f35105360
1 changed files with 7 additions and 0 deletions

View File

@ -3,7 +3,9 @@ package com.securitycontrol.entity.system.vo;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.util.List; import java.util.List;
@ -20,15 +22,20 @@ public class MenuVo {
private Integer menuId; private Integer menuId;
@ApiModelProperty(value = "菜单名称") @ApiModelProperty(value = "菜单名称")
@NotBlank(message = "菜单名称不能为空")
@Length(max = 50,message = "菜单名称字符长度不能超过50个字符")
private String menuName; private String menuName;
@ApiModelProperty(value = "菜单路径") @ApiModelProperty(value = "菜单路径")
@NotBlank(message = "菜单路径不能为空")
@Length(max = 100,message = "菜单路径字符长度不能超过100个字符")
private String menuUrl; private String menuUrl;
@ApiModelProperty(value = "菜单类型") @ApiModelProperty(value = "菜单类型")
private Integer menuType; private Integer menuType;
@ApiModelProperty(value = "权限") @ApiModelProperty(value = "权限")
@Length(max = 50,message = "权限字符长度不能超过50个字符")
private String menuAuth; private String menuAuth;
@ApiModelProperty(value = "父ID") @ApiModelProperty(value = "父ID")