修改v1/sys_menu.go的备注错误及代码优化

This commit is contained in:
SliverHorn
2020-11-07 10:40:00 +08:00
parent 699f53e8b2
commit b4bad21e35
5 changed files with 67 additions and 98 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ func CopyAuthority(copyInfo response.SysAuthorityCopyResponse) (err error, autho
return errors.New("存在相同角色id"), authority
}
copyInfo.Authority.Children = []model.SysAuthority{}
err, menus := GetMenuAuthority(copyInfo.OldAuthorityId)
err, menus := GetMenuAuthority(&request.GetAuthorityId{AuthorityId: copyInfo.OldAuthorityId})
var baseMenu []model.SysBaseMenu
for _, v := range menus {
intNum, _ := strconv.Atoi(v.MenuId)