You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.4 KiB
33 lines
1.4 KiB
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"`
|
|
AddTags []string `json:"addTags"`
|
|
RemoveTags []string `json:"removeTags"`
|
|
|
|
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"`
|
|
Tags []string `json:"tags,omitempty"`
|
|
Loose bool `json:"loose,omitempty"`
|
|
UnScheduled bool `json:"unScheduled,omitempty"`
|
|
UnAcquired bool `json:"unAcquired,omitempty"`
|
|
}
|