修改配置path灵活度 可增加路由参数

This commit is contained in:
pixel
2020-05-20 16:01:48 +08:00
parent 1264272ff8
commit cfb6f5038b
2 changed files with 9 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ func AddBaseMenu(c *gin.Context) {
var menu model.SysBaseMenu
_ = c.ShouldBindJSON(&menu)
MenuVerify := utils.Rules{
"Path": {"notEmpty"},
"Path": {utils.NotEmpty()},
"ParentId": {utils.NotEmpty()},
"Name": {utils.NotEmpty()},
"Component": {utils.NotEmpty()},