Files
stufflog3/models/item.go
T
gisle d4ab0a8555
continuous-integration/drone/push Build is passing
add loose items and better item list handling.
2022-07-04 19:30:34 +02:00

31 lines
1.3 KiB
Go

package models
import "time"
type ItemUpdate struct {
RequirementID *int `json:"requirementId"`
OwnerID *string `json:"ownerId"`
Name *string `json:"name"`
Description *string `json:"description"`
AcquiredTime *time.Time `json:"acquiredTime"`
ScheduledDate *Date `json:"scheduledDate"`
ClearAcquiredTime bool `json:"clearAcquiredTime"`
ClearScheduledDate bool `json:"clearScheduledDate"`
}
type ItemFilter struct {
OwnerID *string `json:"ownerId,omitempty"`
AcquiredTime *TimeInterval[time.Time] `json:"acquiredTime,omitempty"`
CreatedTime *TimeInterval[time.Time] `json:"createdTime,omitempty"`
ScheduledDate *TimeInterval[Date] `json:"scheduledDate,omitempty"`
IDs []int `json:"ids,omitempty"`
ScopeIDs []int `json:"scopeIds,omitempty"`
ProjectIDs []int `json:"projectIds,omitempty"`
RequirementIDs []int `json:"requirementIds,omitempty"`
StatIDs []int `json:"statIds,omitempty"`
Loose bool `json:"loose,omitempty"`
UnScheduled bool `json:"unScheduled,omitempty"`
UnAcquired bool `json:"unAcquired,omitempty"`
}