aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/graphql/model/generated.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/graphql/model/generated.go')
-rw-r--r--backend/graphql/model/generated.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/backend/graphql/model/generated.go b/backend/graphql/model/generated.go
index 25ed8d8..11f9692 100644
--- a/backend/graphql/model/generated.go
+++ b/backend/graphql/model/generated.go
@@ -20,6 +20,12 @@ type Article struct {
Feed *Feed `json:"feed"`
}
+// Authentication payload returned from login mutation
+type AuthPayload struct {
+ // The authenticated user
+ User *User `json:"user"`
+}
+
// Represents a feed subscription in the system
type Feed struct {
// Unique identifier for the feed
@@ -43,3 +49,11 @@ type Mutation struct {
// Root query type for reading data
type Query struct {
}
+
+// Represents a user in the system
+type User struct {
+ // Unique identifier for the user
+ ID string `json:"id"`
+ // Username of the user
+ Username string `json:"username"`
+}