diff options
Diffstat (limited to 'graphql/models/gen_models.go')
-rw-r--r-- | graphql/models/gen_models.go | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/graphql/models/gen_models.go b/graphql/models/gen_models.go index 849b18428..71a6b78bd 100644 --- a/graphql/models/gen_models.go +++ b/graphql/models/gen_models.go @@ -3,15 +3,17 @@ package models import ( - fmt "fmt" - io "io" - strconv "strconv" + "fmt" + "io" + "strconv" - bug "github.com/MichaelMure/git-bug/bug" + "github.com/MichaelMure/git-bug/bug" ) // An object that has an author. -type Authored interface{} +type Authored interface { + IsAuthored() +} // The connection type for Bug. type BugConnection struct { @@ -39,6 +41,7 @@ type CommentEdge struct { Node bug.Comment `json:"node"` } +// The connection type for an Operation type OperationConnection struct { Edges []OperationEdge `json:"edges"` Nodes []bug.Operation `json:"nodes"` @@ -46,6 +49,7 @@ type OperationConnection struct { TotalCount int `json:"totalCount"` } +// Represent an Operation type OperationEdge struct { Cursor string `json:"cursor"` Node bug.Operation `json:"node"` @@ -59,6 +63,7 @@ type PageInfo struct { EndCursor string `json:"endCursor"` } +// The connection type for TimelineItem type TimelineItemConnection struct { Edges []TimelineItemEdge `json:"edges"` Nodes []bug.TimelineItem `json:"nodes"` @@ -66,6 +71,7 @@ type TimelineItemConnection struct { TotalCount int `json:"totalCount"` } +// Represent a TimelineItem type TimelineItemEdge struct { Cursor string `json:"cursor"` Node bug.TimelineItem `json:"node"` |