feat: account.

This commit is contained in:
2026-02-03 15:43:42 +08:00
parent 1c38601fe0
commit 85ec3cba4a
8 changed files with 276 additions and 3 deletions

View File

@ -25,6 +25,7 @@ type StepHeartRate struct {
// 对应Flutter的TrainRecord结构
type StepTrainRecord struct {
gorm.Model
Username string `gorm:"size:50" json:"username"` // 对应Dart的tid字段
TrainId uint `gorm:"uniqueIndex" json:"tid"` // 对应Dart的tid字段
StartTime int64 `gorm:"type:bigint" json:"time"` // 开始时间戳
EndTime int64 `gorm:"type:bigint" json:"endTime"` // 结束时间戳[3](@ref)