44 lines
1.4 KiB
Go
44 lines
1.4 KiB
Go
package dto
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type TimeEntryDto struct {
|
|
ID string `json:"id"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
LastEditorID string `json:"lastEditorID"`
|
|
UserID string `json:"userId"`
|
|
ProjectID string `json:"projectId"`
|
|
ActivityID string `json:"activityId"`
|
|
Start time.Time `json:"start"`
|
|
End time.Time `json:"end"`
|
|
Description string `json:"description"`
|
|
Billable int `json:"billable"` // Percentage (0-100)
|
|
}
|
|
|
|
type TimeEntryCreateDto struct {
|
|
UserID string `json:"userId"`
|
|
ProjectID string `json:"projectId"`
|
|
ActivityID string `json:"activityId"`
|
|
Start time.Time `json:"start"`
|
|
End time.Time `json:"end"`
|
|
Description string `json:"description"`
|
|
Billable int `json:"billable"` // Percentage (0-100)
|
|
}
|
|
|
|
type TimeEntryUpdateDto struct {
|
|
ID string `json:"id"`
|
|
CreatedAt *time.Time `json:"createdAt"`
|
|
UpdatedAt *time.Time `json:"updatedAt"`
|
|
LastEditorID *string `json:"lastEditorID"`
|
|
UserID *string `json:"userId"`
|
|
ProjectID *string `json:"projectId"`
|
|
ActivityID *string `json:"activityId"`
|
|
Start *time.Time `json:"start"`
|
|
End *time.Time `json:"end"`
|
|
Description *string `json:"description"`
|
|
Billable *int `json:"billable"` // Percentage (0-100)
|
|
}
|