-
Notifications
You must be signed in to change notification settings - Fork 0
/
invigilation.resolvers.go
31 lines (24 loc) · 1.26 KB
/
invigilation.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
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"
"github.com/obcode/plexams.go/graph/model"
)
// InvigilatorTodos is the resolver for the invigilatorTodos field.
func (r *queryResolver) InvigilatorTodos(ctx context.Context) (*model.InvigilationTodos, error) {
return r.plexams.GetInvigilationTodos(ctx)
}
// InvigilatorsWithReq is the resolver for the invigilatorsWithReq field.
func (r *queryResolver) InvigilatorsWithReq(ctx context.Context) ([]*model.Invigilator, error) {
return r.plexams.InvigilatorsWithReq(ctx)
}
// RoomsWithInvigilationsForSlot is the resolver for the roomsWithInvigilationsForSlot field.
func (r *queryResolver) RoomsWithInvigilationsForSlot(ctx context.Context, day int, time int) (*model.InvigilationSlot, error) {
return r.plexams.RoomsWithInvigilationsForSlot(ctx, day, time)
}
// InvigilatorsForDay is the resolver for the invigilatorsForDay field.
func (r *queryResolver) InvigilatorsForDay(ctx context.Context, day int) (*model.InvigilatorsForDay, error) {
return r.plexams.InvigilatorsForDay(ctx, day)
}