-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for saving URLs and deleting articles
- Loading branch information
Showing
8 changed files
with
119 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package queries | ||
|
||
import "github.com/shurcooL/graphql" | ||
|
||
var DeleteArticle struct { | ||
SetBookmarkArticle struct { | ||
SetBookmarkArticleSuccess struct { | ||
BookmarkedArticle struct { | ||
ID graphql.ID | ||
LinkId graphql.ID | ||
} | ||
} `graphql:"... on SetBookmarkArticleSuccess"` | ||
SetBookmarkArticleError struct { | ||
ErrorCodes string | ||
} `graphql:"... on SetBookmarkArticleError"` | ||
} `graphql:"setBookmarkArticle(input: $input)"` | ||
} | ||
|
||
type SetBookmarkArticleInput struct { | ||
ArticleId graphql.ID `json:"articleID"` | ||
Bookmark graphql.Boolean `json:"bookmark"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package queries | ||
|
||
import "github.com/shurcooL/graphql" | ||
|
||
var SaveUrl struct { | ||
SaveUrl struct { | ||
SaveSuccess struct { | ||
ClientRequestID graphql.ID | ||
Url string | ||
} `graphql:"... on SaveSuccess"` | ||
SaveError struct { | ||
ErrorCodes string | ||
} `graphql:"... on SaveError"` | ||
} `graphql:"saveUrl(input: $input)"` | ||
} | ||
|
||
type SaveUrlInput struct { | ||
Url graphql.String `json:"url"` | ||
ClientRequestId graphql.ID `json:"clientRequestId"` | ||
Source graphql.String `json:"source"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters