feat: predict value.
This commit is contained in:
@ -21,12 +21,13 @@ type Belt struct {
|
|||||||
// 对应Flutter的HeartRate结构
|
// 对应Flutter的HeartRate结构
|
||||||
type HeartRate struct {
|
type HeartRate struct {
|
||||||
gorm.Model
|
gorm.Model
|
||||||
TrainId uint `gorm:"column:train_id; index" json:"trainId"` // 外键关联训练记录[4](@ref)
|
TrainId uint `gorm:"column:train_id; index" json:"trainId"` // 外键关联训练记录[4](@ref)
|
||||||
BeltId uint `gorm:"column:belt_id;index" json:"bid"` // 对应Dart的bid字段
|
BeltId uint `gorm:"column:belt_id;index" json:"bid"` // 对应Dart的bid字段
|
||||||
BeltAddr string `gorm:"column:belt_addr;size:255" json:"beltAddr"` // 对应Dart的beltAddr字段
|
BeltAddr string `gorm:"column:belt_addr;size:255" json:"beltAddr"` // 对应Dart的beltAddr字段
|
||||||
Time int64 `gorm:"type:bigint" json:"time"` // 保持与前端一致的毫秒时间戳[3](@ref)
|
Time int64 `gorm:"type:bigint" json:"time"` // 保持与前端一致的毫秒时间戳[3](@ref)
|
||||||
Value int `gorm:"type:int" json:"value"`
|
Value int `gorm:"type:int" json:"value"`
|
||||||
Identifier string `gorm:"uniqueIndex;type:varchar(255)" json:"identifier"`
|
PredictValue int `gorm:"type:int" json:"predictValue"`
|
||||||
|
Identifier string `gorm:"uniqueIndex;type:varchar(255)" json:"identifier"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// 对应Flutter的TrainRecord结构
|
// 对应Flutter的TrainRecord结构
|
||||||
|
|||||||
Reference in New Issue
Block a user