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 }