aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--timetask/fields.go12
-rw-r--r--timetask/time_entry.go4
2 files changed, 8 insertions, 8 deletions
diff --git a/timetask/fields.go b/timetask/fields.go
index 991297b..fb3a026 100644
--- a/timetask/fields.go
+++ b/timetask/fields.go
@@ -3,13 +3,13 @@ package timetask
import "fmt"
type Client struct {
- ID uint
+ ID int
Name string
Projects []Project
}
type Project struct {
- ID uint
+ ID int
Name string
Modules []Module
Tasks []Task
@@ -17,20 +17,20 @@ type Project struct {
}
type Module struct {
- ID uint
+ ID int
Name string
}
type Task struct {
- ID uint
+ ID int
Name string
}
type WorkType struct {
- ID uint
+ ID int
Name string
}
type Fields struct {
- PersonID uint `yaml:"person_id"`
+ PersonID int `yaml:"person_id"`
Clients []Client
}
diff --git a/timetask/time_entry.go b/timetask/time_entry.go
index a4d37ef..32e2825 100644
--- a/timetask/time_entry.go
+++ b/timetask/time_entry.go
@@ -9,7 +9,7 @@ type TimeEntry struct {
Task string
WorkType string `yaml:"work_type"`
Date time.Time
- Time uint
+ Time int
Billable bool
Description string
}
@@ -23,7 +23,7 @@ func (te *TimeEntry) UnmarshalYAML(unmarshal func(interface{}) error) error {
Task string
WorkType string `yaml:"work_type"`
Date string
- Time uint
+ Time int
Billable bool
Description string
}