Files
gogmagog/models/plan.go
Deepak 0c6f686ce5
All checks were successful
gitea-deepak/gogmagog/pipeline/head This commit looks good
added select plan by id
2020-12-29 16:26:30 -06:00

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