feat: query.

This commit is contained in:
2025-06-27 09:31:42 +08:00
parent 4e10359a5b
commit 19148d7d35
4 changed files with 109 additions and 1 deletions

View File

@ -33,6 +33,6 @@ type StepTrainRecord struct {
Duration int `gorm:"type:int" json:"duration"` // 持续时间(秒)
DeadZone int `gorm:"type:int" json:"deadZone"`
Evaluation string `gorm:"size:50" json:"evaluation"`
HeartRates []StepHeartRate `gorm:"foreignKey:TrainId;references:TrainId" json:"HeartRates"`
HeartRates []StepHeartRate `gorm:"foreignKey:TrainId;references:TrainId" json:"heartRates"`
StrideFreqs []StepStrideFreq `gorm:"foreignKey:TrainId;references:TrainId" json:"strideFreqs"`
}