f err := model.DB.Table("lsq_admin_articles").Find(&articleList).Count(&total).Offset((page-1)*size).Limit(size).Find(&articleList).Error; err != nil {
return serializer.Response{
Data: gin.H{
"list":articleList,
"total":total,
},
}
}
网友评论