All checks were successful
gitea-deepak/gogmagog/pipeline/head This commit looks good
22 lines
392 B
Go
22 lines
392 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()
|
|
}
|
|
|
|
// Plan returns a single plan from the store by plan_id.
|
|
func (m *Model) Plan(id int) (*Plan, error) {
|
|
return m.SelectPlanByID(id)
|
|
}
|