From 6ca19531b94d663a730b6ca11f3f7887f6def447 Mon Sep 17 00:00:00 2001 From: JACKYMYPERSON Date: Sat, 27 Sep 2025 18:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E5=B8=83=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E6=9C=80=E5=A4=9A=E4=B8=BA5=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/article/createarticle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/article/createarticle.go b/controllers/article/createarticle.go index 27c4ae9..ca7af77 100644 --- a/controllers/article/createarticle.go +++ b/controllers/article/createarticle.go @@ -21,7 +21,7 @@ type CreateArticleRequest struct { Title string `json:"title" binding:"required,min=1,max=255"` VoteType string `json:"vote_type" binding:"required,min=1,max=60"` EndTime time.Time `json:"end_time" binding:"required"` - Options []OptionItem `json:"options" binding:"required,min=1,max=3"` + Options []OptionItem `json:"options" binding:"required,min=1,max=5"` } // ArticleList 数据库文章记录结构体