Add POST /user/{userId}/goals (#26)

Closes #4

Reviewed-on: #26
This commit was merged in pull request #26.
This commit is contained in:
2025-05-08 14:02:58 +02:00
parent aa26a8f338
commit d251d41650
4 changed files with 190 additions and 3 deletions

View File

@@ -24,3 +24,13 @@ type Goal struct {
Progress int `json:"progress"`
Weight int `json:"weight"`
}
type CreateGoalRequest struct {
Name string `json:"name"`
Target int `json:"target"`
Weight int `json:"weight"`
}
type CreateGoalResponse struct {
ID int `json:"id"`
}