diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java
index e2c8f5e..745ee5f 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java
@@ -1,11 +1,14 @@
package com.ningdatech.pmapi.sys.model.dto;
+import com.ningdatech.pmapi.sys.model.enumeration.MenuTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
+import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
+import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
@@ -38,13 +41,14 @@ public class MenuSaveDTO implements Serializable {
* 标题
*/
@ApiModelProperty(value = "标题")
- @NotEmpty(message = "请输入菜单标题")
+ @NotEmpty(message = "标题不能为空")
private String title;
/**
* 页面路径
*/
@ApiModelProperty(value = "页面路径")
+ @NotBlank(message = "页面路径不能为空")
private String path;
/**
@@ -88,4 +92,9 @@ public class MenuSaveDTO implements Serializable {
*/
@ApiModelProperty(value = "跳转")
private String redirect;
+
+ @ApiModelProperty("菜单类型")
+ @NotNull(message = "菜单类型不能为空")
+ private MenuTypeEnum menuType;
+
}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Menu.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Menu.java
index 415f5ea..e71c5fd 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Menu.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Menu.java
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ningdatech.pmapi.common.model.entity.MenuTreeEntity;
import com.ningdatech.pmapi.sys.model.enumeration.DataScopeEnum;
+import com.ningdatech.pmapi.sys.model.enumeration.MenuTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
@@ -67,6 +68,9 @@ public class Menu extends MenuTreeEntity