From ea07ca2ab18b0c1b5cb63beb25d70bcfce096aff Mon Sep 17 00:00:00 2001 From: zhangchao Date: Thu, 17 Oct 2024 20:08:31 +0800 Subject: [PATCH] test --- controllers/contents.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/contents.go b/controllers/contents.go index 5a01dc8..5340326 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": "增加失败"}) + ctx.JSON(500, gin.H{"error": "增加内容失败"}) return }