summaryrefslogtreecommitdiff
path: root/internal/actions/actions.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/actions/actions.go')
-rw-r--r--internal/actions/actions.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/internal/actions/actions.go b/internal/actions/actions.go
index 5e2610a..727b474 100644
--- a/internal/actions/actions.go
+++ b/internal/actions/actions.go
@@ -2,6 +2,7 @@ package actions
import (
"context"
+
"punchcard/internal/queries"
)
@@ -11,24 +12,23 @@ type Actions interface {
PunchIn(ctx context.Context, client, project, description string, billableRate *float64) (*TimerSession, error)
PunchInMostRecent(ctx context.Context, description string, billableRate *float64) (*TimerSession, error)
PunchOut(ctx context.Context) (*TimerSession, error)
-
+
// Client operations
CreateClient(ctx context.Context, name, email string, billableRate *float64) (*queries.Client, error)
FindClient(ctx context.Context, nameOrID string) (*queries.Client, error)
-
- // Project operations
+
+ // Project operations
CreateProject(ctx context.Context, name, client string, billableRate *float64) (*queries.Project, error)
FindProject(ctx context.Context, nameOrID string) (*queries.Project, error)
}
// New creates a new Actions instance
func New(q *queries.Queries) Actions {
- return &actionsImpl{
- queries: q,
- }
+ return &actions{queries: q}
}
-// actionsImpl implements the Actions interface
-type actionsImpl struct {
+// actions implements the Actions interface
+type actions struct {
queries *queries.Queries
-} \ No newline at end of file
+}
+