Browse Source

menu鉴权模式代码书写重复

main
pixel 4 years ago
parent
commit
e0825fa8c7
  1. 2
      server/api/v1/sys_menu.go

2
server/api/v1/sys_menu.go

@ -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…
Cancel
Save