refactor: return value.
This commit is contained in:
@ -73,7 +73,10 @@ func (tc *TrainingController) CreateTrainingRecord(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
c.JSON(http.StatusCreated, record)
|
c.JSON(http.StatusCreated, gin.H{
|
||||||
|
"message": "Data saved successfully",
|
||||||
|
"id": record.TrainId,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func ReceiveTrainingData(c *gin.Context) {
|
func ReceiveTrainingData(c *gin.Context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user