refactor: return value.

This commit is contained in:
2025-03-21 10:22:43 +08:00
parent 243361ee80
commit 4bb2dff5ea

View File

@ -73,7 +73,10 @@ func (tc *TrainingController) CreateTrainingRecord(c *gin.Context) {
return
}
c.JSON(http.StatusCreated, record)
c.JSON(http.StatusCreated, gin.H{
"message": "Data saved successfully",
"id": record.TrainId,
})
}
func ReceiveTrainingData(c *gin.Context) {