Ignore error validation
This commit is contained in:
1 parent
1bb0eb150d
commit
aee307dfa0
14 files changed
+61
-29
No files matched your search
+4
-2
@@ -261,8 +261,10 @@ func (e *Menu) GetPage() (Menus []Menu, err error) {
|
||||
// 数据权限控制
|
||||
dataPermission := new(DataPermission)
|
||||
dataPermission.UserId, _ = tools.StringToInt(e.DataScope)
|
||||
table = dataPermission.GetDataScope("sys_menu", table)
|
||||
|
||||
table, err = dataPermission.GetDataScope("sys_menu", table)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err = table.Order("sort").Find(&Menus).Error; err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user