This commit is contained in:
2024-09-11 10:28:09 +08:00
parent eec6e56567
commit 3aae98e50c
4 changed files with 26 additions and 2 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ func (r *Article) GetArticleRankList(c *gin.Context) {
articleDao := dao.ArticleDao{}
maps := make(map[string]interface{})
maps["article_status"] = 1
articles, err := articleDao.GetArticleOrderList(maps, "vote_num desc", 15)
articles, err := articleDao.GetArticleRankList(maps, "vote_num desc", 15)
if err != nil {
responses.OkWithData(nil, c)
return
+1 -1
View File
@@ -137,7 +137,7 @@ func (r *Video) GetVideoRankList(c *gin.Context) {
videoDao := dao.VideoDao{}
maps := make(map[string]interface{})
maps["video_status"] = 1
videos, err := videoDao.GetVideoOrderList(maps, "vote_num desc", 15)
videos, err := videoDao.GetVideoRankList(maps, "vote_num desc", 15)
if err != nil {
responses.OkWithData(nil, c)
return