Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
6c1fdabf
Commit
6c1fdabf
authored
Oct 16, 2017
by
naan1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加对添加菜单输入信息的为空校验
parent
eb18a1a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/model/Menu.java
+4
-1
No files found.
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/model/Menu.java
View file @
6c1fdabf
...
...
@@ -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
;
/**
* 菜单排序号
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment