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
@@ -95,8 +95,10 @@ func (e *DictType) GetPage(pageSize int, pageIndex int) ([]DictType, int, error)
|
||||
// 数据权限控制
|
||||
dataPermission := new(DataPermission)
|
||||
dataPermission.UserId, _ = tools.StringToInt(e.DataScope)
|
||||
table = dataPermission.GetDataScope("sys_dict_type", table)
|
||||
|
||||
table, err := dataPermission.GetDataScope("sys_dict_type", table)
|
||||
if err != nil {
|
||||
return nil, 0, err
|
||||
}
|
||||
var count int
|
||||
|
||||
if err := table.Offset((pageIndex - 1) * pageSize).Limit(pageSize).Find(&doc).Error; err != nil {
|
||||
|
||||
Reference in new issue
Block a user