From 23dd22eab59c152cf13b3b11db58e27b39fe502e Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 17 Mar 2024 04:14:40 +0100 Subject: [PATCH] Json field alias for WeeklyReport --- backend/internal/types/WeeklyReport.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/internal/types/WeeklyReport.go b/backend/internal/types/WeeklyReport.go index 23624db..e0ea1ef 100644 --- a/backend/internal/types/WeeklyReport.go +++ b/backend/internal/types/WeeklyReport.go @@ -3,19 +3,19 @@ package types // This is what should be submitted to the server, the username will be derived from the JWT token type NewWeeklyReport struct { // The name of the project, as it appears in the database - ProjectName string + ProjectName string `json:"projectName"` // The week number - Week int + Week int `json:"week"` // Total time spent on development - DevelopmentTime int + DevelopmentTime int `json:"developmentTime"` // Total time spent in meetings - MeetingTime int + MeetingTime int `json:"meetingTime"` // Total time spent on administrative tasks - AdminTime int + AdminTime int `json:"adminTime"` // Total time spent on personal projects - OwnWorkTime int + OwnWorkTime int `json:"ownWorkTime"` // Total time spent on studying - StudyTime int + StudyTime int `json:"studyTime"` // Total time spent on testing - TestingTime int + TestingTime int `json:"testingTime"` }