-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.go
36 lines (31 loc) · 909 Bytes
/
domain.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package main
import "time"
type Routine struct {
RoutineId int `json:"routine_id"`
Title string `json:"title"`
TotalDuration int `json:"total_duration"`
Character string `json:"character"`
CreatorTag string `json:"creator_tag"`
CreatorId int `json:"creator_id"`
CreationDate time.Time `json:"creation_date"`
Popularity int `json:"popularity"`
Drills Drills `json:"drills"`
}
type Routines []Routine
type Drill struct {
DrillTitle string `json:"drill_title"`
Duration int `json:"duration"`
}
type Drills []Drill
type Library struct {
LibraryId int `json:"library_id"`
UserId int `json:"user_id"`
Routines Routines `json:"routines"`
}
type User struct {
UserId int `json:"user_id"`
Tag string `json:"tag"`
Email string `json:"email"`
Bio string `json:"bio"`
Main string `json:"main"`
}