summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/models/budget.go2
-rw-r--r--internal/models/types.go19
2 files changed, 10 insertions, 11 deletions
diff --git a/internal/models/budget.go b/internal/models/budget.go
index 8a3917a..2dc29aa 100644
--- a/internal/models/budget.go
+++ b/internal/models/budget.go
@@ -6,7 +6,7 @@ package models
// handlers.ComputeBudgetPeriod.
type AvailabilityBlock struct {
ID string `json:"id"`
- Weekday int `json:"weekday"` // 0-6, Sun-Sat
+ Weekday int `json:"weekday"` // 0-6, Sun-Sat
StartTime string `json:"start_time"` // "18:00"
EndTime string `json:"end_time"` // "20:00"
Label string `json:"label"`
diff --git a/internal/models/types.go b/internal/models/types.go
index 1267d31..e3164de 100644
--- a/internal/models/types.go
+++ b/internal/models/types.go
@@ -8,18 +8,18 @@ import (
// Task represents a native task
type Task struct {
- ID string `json:"id"`
- Content string `json:"content"`
- Description string `json:"description"`
- ProjectID string `json:"project_id"`
- ProjectName string `json:"project_name"`
- DueDate *time.Time `json:"due_date,omitempty"`
- Priority int `json:"priority"`
- Completed bool `json:"completed"`
+ ID string `json:"id"`
+ Content string `json:"content"`
+ Description string `json:"description"`
+ ProjectID string `json:"project_id"`
+ ProjectName string `json:"project_name"`
+ DueDate *time.Time `json:"due_date,omitempty"`
+ Priority int `json:"priority"`
+ Completed bool `json:"completed"`
Labels []string `json:"labels"`
EstimatedMinutes int `json:"estimated_minutes,omitempty"`
URL string `json:"url"`
- CreatedAt time.Time `json:"created_at"`
+ CreatedAt time.Time `json:"created_at"`
// Recurrence (doot-native tasks only). RecurrenceSeriesID != "" is the
// indicator that a task is recurring.
@@ -146,7 +146,6 @@ type Card struct {
URL string `json:"url"`
}
-
// CalendarEvent represents a Google Calendar event
type CalendarEvent struct {
ID string `json:"id"`