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