31 lines
1.3 KiB
Go
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"`
|
|
}
|