Added GetWeeklyReport function and corresponding test

This commit is contained in:
dDogge 2024-03-17 17:58:02 +01:00
parent c90d495636
commit a77e57e496
3 changed files with 66 additions and 1 deletions

View file

@ -26,7 +26,7 @@ type WeeklyReport struct {
// The user id of the user who submitted the report
UserId int `json:"userId" db:"user_id"`
// The name of the project, as it appears in the database
ProjectId string `json:"projectId" db:"project_id"`
ProjectId int `json:"projectId" db:"project_id"`
// The week number
Week int `json:"week" db:"week"`
// Total time spent on development