menu鉴权模式代码书写重复
This commit is contained in:
parent
e27066d9ac
commit
7a31de2960
|
@ -74,7 +74,7 @@ func AddBaseMenu(c *gin.Context) {
|
|||
"ParentId": {utils.NotEmpty()},
|
||||
"Name": {utils.NotEmpty()},
|
||||
"Component": {utils.NotEmpty()},
|
||||
"Sort": {utils.Ge("0"), "ge=0"},
|
||||
"Sort": {utils.Ge("0")},
|
||||
}
|
||||
MenuVerifyErr := utils.Verify(menu, MenuVerify)
|
||||
if MenuVerifyErr != nil {
|
||||
|
|
Loading…
Reference in New Issue