Add rowing machine endpoint
This commit is contained in:
@@ -55,3 +55,14 @@ type Favorite struct {
|
||||
Name string `json:"name"`
|
||||
Link *string `json:"link"`
|
||||
}
|
||||
|
||||
type Rowing struct {
|
||||
ID uint `gorm:"primarykey" json:"id"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
DeletedAt gorm.DeletedAt `gorm:"index" json:"deletedAt"`
|
||||
Date time.Time `json:"date"`
|
||||
Time time.Duration `json:"time"`
|
||||
TimePer500m time.Duration `json:"timePer500m"`
|
||||
Distance float64 `json:"distance"`
|
||||
Calories float64 `json:"calories"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user