gogmagog/models/action.go
Deepak 50bbcdc71d
All checks were successful
gitea-deepak/gogmagog/pipeline/head This commit looks good
adds full action fields to struct
2020-12-29 15:05:00 -06:00

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()
}