aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/graphql/model/generated.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-11 00:12:49 +0900
committernsfisis <nsfisis@gmail.com>2025-07-11 00:12:49 +0900
commit5fd105fd8ff480afaaf9c8ccd45eb26b61018550 (patch)
treefa6d278e5eb8a3a33f9a50088a18aa7ee8dde6d6 /backend/graphql/model/generated.go
parentce42724c7b055f8f4d1080410e1cf358cbe99189 (diff)
downloadfeedaka-5fd105fd8ff480afaaf9c8ccd45eb26b61018550.tar.gz
feedaka-5fd105fd8ff480afaaf9c8ccd45eb26b61018550.tar.zst
feedaka-5fd105fd8ff480afaaf9c8ccd45eb26b61018550.zip
feat(backend): add GraphQL boilerplate code
Diffstat (limited to 'backend/graphql/model/generated.go')
-rw-r--r--backend/graphql/model/generated.go43
1 files changed, 43 insertions, 0 deletions
diff --git a/backend/graphql/model/generated.go b/backend/graphql/model/generated.go
new file mode 100644
index 0000000..bd5dcca
--- /dev/null
+++ b/backend/graphql/model/generated.go
@@ -0,0 +1,43 @@
+// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
+
+package model
+
+// Represents an individual article/post from a feed
+type Article struct {
+ // Unique identifier for the article
+ ID string `json:"id"`
+ // ID of the feed this article belongs to
+ FeedID string `json:"feedId"`
+ // GUID from the RSS/Atom feed (unique identifier from feed)
+ GUID string `json:"guid"`
+ // Title of the article
+ Title string `json:"title"`
+ // URL/link to the original article
+ URL string `json:"url"`
+ // Whether the article has been marked as read
+ IsRead bool `json:"isRead"`
+ // The feed this article belongs to
+ Feed *Feed `json:"feed"`
+}
+
+// Represents a feed subscription in the system
+type Feed struct {
+ // Unique identifier for the feed
+ ID string `json:"id"`
+ // URL of the RSS/Atom feed
+ URL string `json:"url"`
+ // Title of the feed (extracted from feed metadata)
+ Title string `json:"title"`
+ // Timestamp when the feed was last fetched
+ FetchedAt string `json:"fetchedAt"`
+ // Articles belonging to this feed
+ Articles []*Article `json:"articles"`
+}
+
+// Root mutation type for modifying data
+type Mutation struct {
+}
+
+// Root query type for reading data
+type Query struct {
+}