Add put task endpoint (#33)

Closes #23

Reviewed-on: #33
This commit was merged in pull request #33.
This commit is contained in:
2025-05-13 13:01:29 +02:00
parent 0521710032
commit 44d85fc155
4 changed files with 89 additions and 4 deletions

View File

@@ -36,14 +36,12 @@ type CreateGoalResponse struct {
ID int `json:"id"`
}
// CreateTaskRequest represents the request body for creating a new task.
type CreateTaskRequest struct {
Name string `json:"name" binding:"required"`
Reward int `json:"reward"`
Assigned *int `json:"assigned"`
}
// CreateTaskResponse represents the response body after creating a new task.
type CreateTaskResponse struct {
ID int `json:"id"`
}