This commit is contained in:
zhangchao
2024-10-17 19:21:51 +08:00
parent b3d981a6c6
commit 3d4755e462

View File

@@ -16,7 +16,7 @@ func CreateContentHandler(ctx *gin.Context) {
} }
if err := models.DB.Create(&content).Error; err != nil { 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 return
} }