16 lines
243 B
Go
16 lines
243 B
Go
|
|
package queries
|
||
|
|
|
||
|
|
import (
|
||
|
|
"netina/models"
|
||
|
|
p "netina/repositories/plan"
|
||
|
|
)
|
||
|
|
|
||
|
|
|
||
|
|
type GetPlanHandler struct {
|
||
|
|
Repository p.PlanQueryRepository
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
func (r *GetPlanHandler) Handle (id uint)(*models.Plan ,error) {
|
||
|
|
return r.Repository.GetPlan(id)
|
||
|
|
}
|