From 3d4755e4625977e7812195eae720f4a8e204fc88 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Thu, 17 Oct 2024 19:21:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/contents.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/contents.go b/controllers/contents.go index f1c7523..5a01dc8 100644 --- a/controllers/contents.go +++ b/controllers/contents.go @@ -16,7 +16,7 @@ func CreateContentHandler(ctx *gin.Context) { } if err := models.DB.Create(&content).Error; err != nil { - ctx.JSON(500, gin.H{"error": "Failed to create content"}) + ctx.JSON(500, gin.H{"error": "增加失败"}) return }