|
|
@ -53,6 +53,7 @@ func GetFileRecordInfoList(info request.PageInfo) (err error, list interface{}, |
|
|
|
offset := info.PageSize * (info.Page - 1) |
|
|
|
db := global.GVA_DB |
|
|
|
var fileLists []model.ExaFileUploadAndDownload |
|
|
|
err = db.Find(&fileLists).Count(&total).Error |
|
|
|
err = db.Limit(limit).Offset(offset).Order("updated_at desc").Find(&fileLists).Error |
|
|
|
return err, fileLists, total |
|
|
|
} |