Json field alias for WeeklyReport

This commit is contained in:
Imbus 2024-03-17 04:14:40 +01:00
parent b69f8d82ff
commit 23dd22eab5

View file

@ -3,19 +3,19 @@ package types
// This is what should be submitted to the server, the username will be derived from the JWT token // This is what should be submitted to the server, the username will be derived from the JWT token
type NewWeeklyReport struct { type NewWeeklyReport struct {
// The name of the project, as it appears in the database // The name of the project, as it appears in the database
ProjectName string ProjectName string `json:"projectName"`
// The week number // The week number
Week int Week int `json:"week"`
// Total time spent on development // Total time spent on development
DevelopmentTime int DevelopmentTime int `json:"developmentTime"`
// Total time spent in meetings // Total time spent in meetings
MeetingTime int MeetingTime int `json:"meetingTime"`
// Total time spent on administrative tasks // Total time spent on administrative tasks
AdminTime int AdminTime int `json:"adminTime"`
// Total time spent on personal projects // Total time spent on personal projects
OwnWorkTime int OwnWorkTime int `json:"ownWorkTime"`
// Total time spent on studying // Total time spent on studying
StudyTime int StudyTime int `json:"studyTime"`
// Total time spent on testing // Total time spent on testing
TestingTime int TestingTime int `json:"testingTime"`
} }