Documentation
¶
Index ¶
- type ArticleContentResponse
- type ArticleResponse
- type ArticleTagCountsResponse
- type ArticlesResponse
- type CreateArticleByURLRequest
- type CreateNoteRequest
- type CreateParagraphRequest
- type EditParagraphRequest
- type EditorKeyboardHandlerRequest
- type EditorKeyboardHandlerResponse
- type GetPocketAuthResponse
- type GetPocketRequestTokenRequest
- type NoteAndReferenceArticlesResponse
- type NoteResponse
- type NotesResponse
- type PocketAuthResponse
- type PocketRequestTokenResponse
- type PocketSyncRequest
- type SwapParagraphSeqRequest
- type UpdateArticleTitleRequest
- type UpdateContentRequest
- type UpdateNoteTitleRequest
- type UpdateTagRequest
- type UpdateTagsRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleContentResponse ¶ added in v0.10.0
type ArticleResponse ¶
type ArticleResponse struct {
OK bool `json:"ok"`
ArticleMeta *dtos.ArticleMeta `json:"articleMeta"`
}
type ArticleTagCountsResponse ¶
type ArticleTagCountsResponse struct {
OK bool `json:"ok"`
ArticleTagCounts []*models.ArticleTagCountDTO `json:"articleTagCounts"`
UntaggedCount int64 `json:"untaggedCount"`
AllCount int64 `json:"allCount"`
}
type ArticlesResponse ¶
type ArticlesResponse struct {
OK bool `json:"ok"`
ArticleMetas []*dtos.ArticleMeta `json:"articleMetas"`
Pagination *http.Pagination `json:"pagination"`
}
type CreateArticleByURLRequest ¶
type CreateArticleByURLRequest struct {
URL string `json:"url" validate:"required,max=1024"`
Tags []string `json:"tags"`
}
func (*CreateArticleByURLRequest) Validate ¶
func (r *CreateArticleByURLRequest) Validate() error
type CreateNoteRequest ¶
type CreateParagraphRequest ¶
type EditParagraphRequest ¶
type EditorKeyboardHandlerRequest ¶ added in v0.11.0
type EditorKeyboardHandlerRequest struct {
KeyboardHandler string `json:"keyboardHandler"`
}
type EditorKeyboardHandlerResponse ¶ added in v0.11.0
type GetPocketAuthResponse ¶
type NoteAndReferenceArticlesResponse ¶
type NoteAndReferenceArticlesResponse struct {
OK bool `json:"ok"`
Note *models.Note `json:"note"`
ReferencedArticleMetas []*dtos.ArticleMeta `json:"referencedArticleMetas"`
}
type NoteResponse ¶
type NotesResponse ¶
type NotesResponse struct {
OK bool `json:"ok"`
Notes []*models.Note `json:"notes"`
Pagination *http.Pagination `json:"pagination"`
}
type PocketAuthResponse ¶
type PocketSyncRequest ¶
type PocketSyncRequest struct {
IsSyncOn bool `json:"isSyncOn"`
}
type SwapParagraphSeqRequest ¶
type UpdateArticleTitleRequest ¶
type UpdateArticleTitleRequest struct {
Title string `json:"title" validate:"required,min=1,max=128"`
}
type UpdateContentRequest ¶
type UpdateContentRequest struct {
Content string `json:"content" validate:"required"`
}
type UpdateNoteTitleRequest ¶
type UpdateNoteTitleRequest struct {
Title string `json:"title" validate:"required,min=1,max=128"`
}
type UpdateTagRequest ¶
type UpdateTagRequest struct {
Tag string `json:"tag"`
}
type UpdateTagsRequest ¶
type UpdateTagsRequest struct {
Tags []string `json:"tags"`
}
func (*UpdateTagsRequest) Validate ¶
func (r *UpdateTagsRequest) Validate() error
Click to show internal directories.
Click to hide internal directories.