25 lines
597 B
Go
25 lines
597 B
Go
|
package model
|
||
|
|
||
|
type TaskID string
|
||
|
|
||
|
type Task struct {
|
||
|
ID TaskID `json:"id"`
|
||
|
Label string `json:"label"`
|
||
|
Estimations TaskEstimations `json:"estimations"`
|
||
|
CategoryID TaskCategoryID `json:"category"`
|
||
|
}
|
||
|
|
||
|
type TaskEstimations struct {
|
||
|
Optimistic float64 `json:"optimistic"`
|
||
|
Likely float64 `json:"likely"`
|
||
|
Pessimistic float64 `json:"pessimistic"`
|
||
|
}
|
||
|
|
||
|
type TaskCategoryID string
|
||
|
|
||
|
type TaskCategory struct {
|
||
|
ID TaskCategoryID `json:"id"`
|
||
|
Label string `json:"label"`
|
||
|
CostPerTimeUnit float64 `json:"costPerTimeUnit"`
|
||
|
}
|