Commit 6c1fdabf by naan1993

增加对添加菜单输入信息的为空校验

parent eb18a1a2
......@@ -3,6 +3,7 @@ package com.stylefeng.guns.common.persistence.model;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import org.hibernate.validator.constraints.NotBlank;
import java.io.Serializable;
......@@ -21,7 +22,7 @@ public class Menu extends Model<Menu> {
/**
* 主键id
*/
@TableId(value="id", type= IdType.AUTO)
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 菜单编号
......@@ -38,6 +39,7 @@ public class Menu extends Model<Menu> {
/**
* 菜单名称
*/
@NotBlank
private String name;
/**
* 菜单图标
......@@ -46,6 +48,7 @@ public class Menu extends Model<Menu> {
/**
* url地址
*/
@NotBlank
private String url;
/**
* 菜单排序号
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment