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.
32 lines
1.1 KiB
32 lines
1.1 KiB
package models
|
|
|
|
import "time"
|
|
|
|
type SprintUpdate struct {
|
|
Name *string `json:"name"`
|
|
Description *string `json:"description"`
|
|
FromTime *time.Time `json:"fromTime"`
|
|
ToTime *time.Time `json:"toTime"`
|
|
IsTimed *bool `json:"isTimed"`
|
|
IsCoarse *bool `json:"isCoarse"`
|
|
IsUnweighted *bool `json:"isUnweighted"`
|
|
AggregateName *string `json:"aggregateName"`
|
|
AggregateRequired *int `json:"aggregateRequired"`
|
|
Tags []string `json:"tags"`
|
|
}
|
|
|
|
// SprintKind decides the composition of stat bars (SB) and what objects are included in the result (R)
|
|
type SprintKind int
|
|
|
|
func (sk SprintKind) Valid() bool {
|
|
return sk >= 0 && sk < MaxSprintKind
|
|
}
|
|
|
|
const (
|
|
SprintKindItems SprintKind = iota // SB: items' total required, R: items
|
|
SprintKindRequirements // SB: requirements' total required, R: requirements
|
|
SprintKindStats // SB: parts' total required, R: items(AcquiredDate!=nil), stats
|
|
SprintKindScope // SB: no required, R: items(AcquiredDate!=nil)
|
|
|
|
MaxSprintKind
|
|
)
|