-
Notifications
You must be signed in to change notification settings - Fork 0
/
plan.resolvers.go
69 lines (54 loc) · 2.64 KB
/
plan.resolvers.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package graph
// This file will be automatically regenerated based on the schema, any resolver implementations
// will be copied through when generating and any unknown code will be moved to the end.
// Code generated by github.com/99designs/gqlgen version v0.17.45
import (
"context"
"fmt"
"time"
"github.com/obcode/plexams.go/graph/generated"
"github.com/obcode/plexams.go/graph/model"
)
// AddExamToSlot is the resolver for the addExamToSlot field.
func (r *mutationResolver) AddExamToSlot(ctx context.Context, day int, time int, ancode int) (bool, error) {
panic(fmt.Errorf("not implemented: AddExamToSlot - addExamToSlot"))
}
// RmExamFromSlot is the resolver for the rmExamFromSlot field.
func (r *mutationResolver) RmExamFromSlot(ctx context.Context, ancode int) (bool, error) {
panic(fmt.Errorf("not implemented: RmExamFromSlot - rmExamFromSlot"))
}
// Starttime is the resolver for the starttime field.
func (r *planEntryResolver) Starttime(ctx context.Context, obj *model.PlanEntry) (*time.Time, error) {
return r.plexams.GetStarttime(obj.DayNumber, obj.SlotNumber)
}
// AllProgramsInPlan is the resolver for the allProgramsInPlan field.
func (r *queryResolver) AllProgramsInPlan(ctx context.Context) ([]string, error) {
return r.plexams.AllProgramsInPlan(ctx)
}
// AncodesInPlan is the resolver for the ancodesInPlan field.
func (r *queryResolver) AncodesInPlan(ctx context.Context) ([]int, error) {
return r.plexams.AncodesInPlan(ctx)
}
// ExamerNamesInPlan is the resolver for the examerNamesInPlan field.
func (r *queryResolver) ExamerInPlan(ctx context.Context) ([]*model.ExamerInPlan, error) {
return r.plexams.ExamerInPlan(ctx)
}
// ExamGroupsInSlot is the resolver for the examGroupsInSlot field.
func (r *queryResolver) ExamsInSlot(ctx context.Context, day int, time int) ([]*model.PlannedExam, error) {
return r.plexams.GetExamsInSlot(ctx, day, time)
}
// ExamsWithoutSlot is the resolver for the examsWithoutSlot field.
func (r *queryResolver) ExamsWithoutSlot(ctx context.Context) ([]*model.PlannedExam, error) {
return r.plexams.ExamsWithoutSlot(ctx)
}
// AllowedSlots is the resolver for the allowedSlots field.
func (r *queryResolver) AllowedSlots(ctx context.Context, ancode int) ([]*model.Slot, error) {
return r.plexams.AllowedSlots(ctx, ancode)
}
// AwkwardSlots is the resolver for the awkwardSlots field.
func (r *queryResolver) AwkwardSlots(ctx context.Context, ancode int) ([]*model.Slot, error) {
return r.plexams.AwkwardSlots(ctx, ancode)
}
// PlanEntry returns generated.PlanEntryResolver implementation.
func (r *Resolver) PlanEntry() generated.PlanEntryResolver { return &planEntryResolver{r} }
type planEntryResolver struct{ *Resolver }