mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-06 12:01:27 +08:00
[优化]优化目录
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/PandaXGO/PandaKit/biz"
|
||||
"pandax/apps/device/entity"
|
||||
"pandax/pkg/global"
|
||||
"pandax/pkg/global_model"
|
||||
"pandax/pkg/global/model"
|
||||
)
|
||||
|
||||
type (
|
||||
@@ -78,7 +78,7 @@ func (m *alarmModelImpl) FindListPage(page, pageSize int, data entity.DeviceAlar
|
||||
db = db.Where("time < ?", data.EndTime)
|
||||
}
|
||||
// 组织数据访问权限
|
||||
global_model.OrgAuthSet(db, data.RoleId, data.Owner)
|
||||
model.OrgAuthSet(db, data.RoleId, data.Owner)
|
||||
|
||||
err := db.Count(&total).Error
|
||||
err = db.Order("time").Limit(pageSize).Offset(offset).Find(&list).Error
|
||||
|
||||
Reference in New Issue
Block a user