35 lines
1.1 KiB
Go
35 lines
1.1 KiB
Go
package sprints
|
|
|
|
import (
|
|
"git.aiterp.net/stufflog3/stufflog3/entities"
|
|
"git.aiterp.net/stufflog3/stufflog3/usecases/items"
|
|
"git.aiterp.net/stufflog3/stufflog3/usecases/projects"
|
|
)
|
|
|
|
type Result struct {
|
|
entities.Sprint
|
|
|
|
AggregateAcquired int `json:"aggregateAcquired"`
|
|
AggregatePlanned int `json:"aggregatePlanned"`
|
|
|
|
ItemsAcquired *int `json:"itemsAcquired,omitempty"`
|
|
ItemsRequired *int `json:"itemsRequired,omitempty"`
|
|
|
|
PartIDs []int `json:"partIds"` // Just for simplifying code.
|
|
|
|
Items []items.Result `json:"items,omitempty"`
|
|
Stats []entities.Stat `json:"stats,omitempty"`
|
|
Requirements []projects.RequirementResult `json:"requirements,omitempty"`
|
|
Progress []ResultProgress `json:"progress,omitempty"`
|
|
ItemBurndown []BurndownDataPoint `json:"itemBurndown,omitempty"`
|
|
AggregateBurndown []BurndownDataPoint `json:"aggregateBurndown,omitempty"`
|
|
}
|
|
|
|
type ResultProgress struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Weight float64 `json:"weight"`
|
|
Acquired int `json:"acquired"`
|
|
Required *int `json:"required,omitempty"`
|
|
}
|