github.com/oinume/lekcije@v0.0.0-20231017100347-5b4c5eb6ab24/backend/interface/graphql/model/models_gen.go (about) 1 // Code generated by github.com/99designs/gqlgen, DO NOT EDIT. 2 3 package model 4 5 type Connection interface { 6 IsConnection() 7 GetPageInfo() *PageInfo 8 GetEdges() []Edge 9 GetNodes() []Node 10 } 11 12 type Edge interface { 13 IsEdge() 14 GetCursor() string 15 GetNode() Node 16 } 17 18 type Node interface { 19 IsNode() 20 GetID() string 21 } 22 23 type CreateFollowingTeacherInput struct { 24 TeacherIDOrURL string `json:"teacherIdOrUrl"` 25 } 26 27 type CreateFollowingTeacherPayload struct { 28 ID string `json:"id"` 29 TeacherID string `json:"teacherId"` 30 } 31 32 type DeleteFollowingTeachersInput struct { 33 TeacherIds []string `json:"teacherIds"` 34 } 35 36 type DeleteFollowingTeachersPayload struct { 37 TeacherIds []string `json:"teacherIds"` 38 } 39 40 type Empty struct { 41 ID string `json:"id"` 42 } 43 44 type FollowingTeacher struct { 45 ID string `json:"id"` 46 Teacher *Teacher `json:"teacher"` 47 CreatedAt string `json:"createdAt"` 48 } 49 50 func (FollowingTeacher) IsNode() {} 51 func (this FollowingTeacher) GetID() string { return this.ID } 52 53 type FollowingTeacherConnection struct { 54 PageInfo *PageInfo `json:"pageInfo"` 55 Edges []*FollowingTeacherEdge `json:"edges"` 56 Nodes []*FollowingTeacher `json:"nodes"` 57 } 58 59 func (FollowingTeacherConnection) IsConnection() {} 60 func (this FollowingTeacherConnection) GetPageInfo() *PageInfo { return this.PageInfo } 61 func (this FollowingTeacherConnection) GetEdges() []Edge { 62 if this.Edges == nil { 63 return nil 64 } 65 interfaceSlice := make([]Edge, 0, len(this.Edges)) 66 for _, concrete := range this.Edges { 67 interfaceSlice = append(interfaceSlice, concrete) 68 } 69 return interfaceSlice 70 } 71 func (this FollowingTeacherConnection) GetNodes() []Node { 72 if this.Nodes == nil { 73 return nil 74 } 75 interfaceSlice := make([]Node, 0, len(this.Nodes)) 76 for _, concrete := range this.Nodes { 77 interfaceSlice = append(interfaceSlice, concrete) 78 } 79 return interfaceSlice 80 } 81 82 type FollowingTeacherEdge struct { 83 Cursor string `json:"cursor"` 84 Node *FollowingTeacher `json:"node"` 85 } 86 87 func (FollowingTeacherEdge) IsEdge() {} 88 func (this FollowingTeacherEdge) GetCursor() string { return this.Cursor } 89 func (this FollowingTeacherEdge) GetNode() Node { return *this.Node } 90 91 type NotificationTimeSpan struct { 92 FromHour int `json:"fromHour"` 93 FromMinute int `json:"fromMinute"` 94 ToHour int `json:"toHour"` 95 ToMinute int `json:"toMinute"` 96 } 97 98 type NotificationTimeSpanInput struct { 99 FromHour int `json:"fromHour"` 100 FromMinute int `json:"fromMinute"` 101 ToHour int `json:"toHour"` 102 ToMinute int `json:"toMinute"` 103 } 104 105 type NotificationTimeSpanPayload struct { 106 TimeSpans []*NotificationTimeSpan `json:"timeSpans,omitempty"` 107 } 108 109 type PageInfo struct { 110 HasNextPage bool `json:"hasNextPage"` 111 HasPreviousPage bool `json:"hasPreviousPage"` 112 } 113 114 type Teacher struct { 115 ID string `json:"id"` 116 Name string `json:"name"` 117 } 118 119 type UpdateNotificationTimeSpansInput struct { 120 TimeSpans []*NotificationTimeSpanInput `json:"timeSpans"` 121 } 122 123 type UpdateViewerInput struct { 124 Email *string `json:"email,omitempty"` 125 }