diff options
Diffstat (limited to 'timetask')
-rw-r--r-- | timetask/fields.go | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/timetask/fields.go b/timetask/fields.go index 84bf93a..4e3ac7c 100644 --- a/timetask/fields.go +++ b/timetask/fields.go @@ -1,25 +1,31 @@ package timetask -type IDName struct { - ID uint - Name string -} - type Client struct { - IDName + ID uint + Name string Projects []Project } type Project struct { - IDName + ID uint + Name string Modules []Module Tasks []Task WorkTypes []WorkType `yaml:"work_types"` } -type Module IDName -type Task IDName -type WorkType IDName +type Module struct { + ID uint + Name string +} +type Task struct { + ID uint + Name string +} +type WorkType struct { + ID uint + Name string +} type Fields struct { PersonID uint `yaml:"person_id"` |