package model import ( "time" "git.ma-al.com/goc_marek/timetracker/app/utils/pagination" ) // LoginRequest represents the login form data type DataRequest struct { RepoID uint `json:"repoid" form:"repoid"` Step uint `json:"step" form:"step"` } type PageMeta struct { Title string Description string } type QuarterData struct { Time float64 `json:"time"` Quarter string `json:"quarter"` } type DayData struct { Date string `json:"date"` Time float64 `json:"time"` } type RepositoryChartData struct { Years []uint Quarters []QuarterData QuartersJSON string Year uint } type TimeTrackedData struct { RepoId uint Year uint Quarter uint Step string TotalTime float64 DailyData []DayData DailyDataJSON string Years []uint IssueSummaries *pagination.Found[IssueTimeSummary] } type IssueTimeSummary struct { IssueID uint `gorm:"column:issue_id"` IssueName string `gorm:"column:issue_name"` CreatedDate time.Time `gorm:"column:issue_created_at"` TotalHoursSpent float64 `gorm:"column:total_hours_spent"` }