gogmagog/models/plan.go
2020-12-27 19:33:54 -06:00

17 lines
257 B
Go

package models
import (
"time"
)
// Plan represents a single day's agenda of actions.
type Plan struct {
PlanID int64
PlanDate time.Time
}
// Plans returns all plans in the model.
func (m *Model) Plans() ([]*Plan, error) {
return m.SelectPlans()
}