From 2aa22b1385b1557f97ad48dc5937d2aee3b226ab Mon Sep 17 00:00:00 2001 From: laoboli <1293528695@qq.com> Date: Thu, 3 Jul 2025 09:38:51 +0800 Subject: [PATCH] fix: json --- models/step_train.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/step_train.go b/models/step_train.go index 32e3e5c..c163e0a 100644 --- a/models/step_train.go +++ b/models/step_train.go @@ -28,7 +28,7 @@ type StepTrainRecord struct { StartTime int64 `gorm:"type:bigint" json:"time"` // 开始时间戳 EndTime int64 `gorm:"type:bigint" json:"endTime"` // 结束时间戳[3](@ref) Name string `gorm:"size:100" json:"name"` - RunType string `gorm:"size:100" json:"RunType"` + RunType string `gorm:"size:100" json:"runType"` MaxHeartRate int `gorm:"type:int" json:"maxHeartRate"` Duration int `gorm:"type:int" json:"duration"` // 持续时间(秒) DeadZone int `gorm:"type:int" json:"deadZone"`