From a7b3fc766988c1ea14aff085fca8c0bc3abcde1c Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Sat, 21 Sep 2024 16:13:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=8C=83=E5=9B=B4=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dao/video.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dao/video.go b/dao/video.go index 6b87cdd..f3d3a48 100644 --- a/dao/video.go +++ b/dao/video.go @@ -65,7 +65,7 @@ func FindVideoByID(id, auth_id int) Video { // 根据用户id查找视频列表,返回最新30条 func FindVideoListsByAuthID(auth_id int) []Video { var videos []Video - DB.Debug().Where("auth_id = ? and isdelete =? ", auth_id, 0).Order("create_time DESC").Limit(30).Find(&videos) + DB.Debug().Where("auth_id = ? and isdelete =? ", auth_id, 0).Order("created_at DESC").Limit(30).Find(&videos) return videos }