All checks were successful
gitea-deepak/gogmagog/pipeline/head This commit looks good
23 lines
432 B
Go
23 lines
432 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Action represents a single action item.
|
|
type Action struct {
|
|
ActionID int64
|
|
ActionDescription string
|
|
EstimatedChunks int
|
|
CompletedChunks int
|
|
CompletedOn time.Time
|
|
PlanID int
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
// Actions returns all actions from the model.
|
|
func (m *Model) Actions() ([]*Action, error) {
|
|
return m.SelectActions()
|
|
}
|