From 2bd981135d8f3aaae39152954a7a7cda9f820c48 Mon Sep 17 00:00:00 2001 From: Redish101 Date: Sat, 26 Jul 2025 16:31:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BA=A0=E6=AD=A3=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E5=88=97=E8=A1=A8=E6=8E=92=E5=BA=8F=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/controller/v1/comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/v1/comment.go b/internal/controller/v1/comment.go index 101fad7..3f78e5a 100644 --- a/internal/controller/v1/comment.go +++ b/internal/controller/v1/comment.go @@ -93,7 +93,7 @@ func (cc *CommentController) GetCommentList(ctx context.Context, c *app.RequestC if pagination.OrderBy == "" { pagination.OrderBy = constant.OrderByUpdatedAt } - if pagination.OrderBy != "" && !slices.Contains(constant.OrderByEnumPost, pagination.OrderBy) { + if pagination.OrderBy != "" && !slices.Contains(constant.OrderByEnumComment, pagination.OrderBy) { resps.BadRequest(c, "无效的排序字段") return }