From 9ae630f70d0ad381a4179e6a0a4888ca7f04f422 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Wed, 20 Nov 2024 08:36:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A2=98=E7=9B=AE=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=9D=A5=E6=BA=90=E9=AA=8C=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/service/Question.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/service/Question.go b/api/service/Question.go index 38deb2e..77fd07c 100644 --- a/api/service/Question.go +++ b/api/service/Question.go @@ -109,6 +109,7 @@ func (r *QuestionService) AddQuestion(req requests.AddQuestion) (bool, error) { maps := make(map[string]interface{}) maps["question_name"] = req.QuestionName + maps["question_source"] = req.QuestionSource question, _ := questionDao.GetQuestion(maps) if question != nil { return false, errors.New("题目名称重复")