aboutsummaryrefslogtreecommitdiffstats
path: root/timetask/fields.go
diff options
context:
space:
mode:
authorTeddy Wing2017-03-12 17:51:04 +0100
committerTeddy Wing2017-03-12 17:51:04 +0100
commita14736cd1311595f9d0aaf94e6852b246a606d13 (patch)
tree9dc16bddb3881fb00d99c3f87dd7343b7a69b4e9 /timetask/fields.go
parent17f4ecc63615e3f3bef21a80f15e7c7b0e0cffa1 (diff)
downloadtimetasker-a14736cd1311595f9d0aaf94e6852b246a606d13.tar.bz2
Change all `uint` types to `int`
Because `strings.Itoa` is so much easier to call than `strconv.ParseUint`, and I needed to parse ints into strings to build the URL params in `buildSubmissionParams` (17f4ecc63615e3f3bef21a80f15e7c7b0e0cffa1).
Diffstat (limited to 'timetask/fields.go')
-rw-r--r--timetask/fields.go12
1 files changed, 6 insertions, 6 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
}