reqres

package
v0.15.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleContentResponse added in v0.10.0

type ArticleContentResponse struct {
	OK      bool
	Content string `json:"content"`
}

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 CreateNoteRequest struct {
	Title               string   `json:"title" validate:"required,max=1024"`
	Content             string   `json:"content" validate:"required,min=1"`
	ReferenceArticleIDs []int64  `json:"referenceArticleIDs"`
	ReferenceWebURLs    []string `json:"referenceWebUrls"`
}

type CreateParagraphRequest

type CreateParagraphRequest struct {
	Content             string   `json:"content" validate:"required,min=1"`
	ReferenceArticleIDs []int64  `json:"referenceArticleIDs"`
	ReferenceWebURLs    []string `json:"referenceWebUrls"`
}

type EditParagraphRequest

type EditParagraphRequest struct {
	Content             string   `json:"content" validate:"required,min=1"`
	ReferenceArticleIDs []int64  `json:"referenceArticleIDs"`
	ReferenceWebURLs    []string `json:"referenceWebUrls"`
}

type EditorKeyboardHandlerRequest added in v0.11.0

type EditorKeyboardHandlerRequest struct {
	KeyboardHandler string `json:"keyboardHandler"`
}

type EditorKeyboardHandlerResponse added in v0.11.0

type EditorKeyboardHandlerResponse struct {
	OK              bool   `json:"ok"`
	KeyboardHandler string `json:"keyboardHandler"`
}

type GetPocketAuthResponse

type GetPocketAuthResponse struct {
	OK              bool       `json:"ok"`
	IsAuthenticated bool       `json:"isAuthenticated"`
	Username        string     `json:"username"`
	IsSyncOn        bool       `json:"isSyncOn"`
	LastSyncTime    *time.Time `json:"lastSyncTime"`
}

type GetPocketRequestTokenRequest

type GetPocketRequestTokenRequest struct {
	ConsumerKey string `json:"consumerKey" validate:"required"`
	RedirectURI string `json:"redirectURI" validate:"required"`
}

type NoteAndReferenceArticlesResponse

type NoteAndReferenceArticlesResponse struct {
	OK                     bool                `json:"ok"`
	Note                   *models.Note        `json:"note"`
	ReferencedArticleMetas []*dtos.ArticleMeta `json:"referencedArticleMetas"`
}

type NoteResponse

type NoteResponse struct {
	OK   bool         `json:"ok"`
	Note *models.Note `json:"note"`
}

type NotesResponse

type NotesResponse struct {
	OK         bool             `json:"ok"`
	Notes      []*models.Note   `json:"notes"`
	Pagination *http.Pagination `json:"pagination"`
}

type PocketAuthResponse

type PocketAuthResponse struct {
	OK        bool `json:"ok"`
	IsAllowed bool `json:"isAllowed"`
}

type PocketRequestTokenResponse

type PocketRequestTokenResponse struct {
	OK           bool   `json:"ok"`
	RequestToken string `json:"requestToken"`
}

type PocketSyncRequest

type PocketSyncRequest struct {
	IsSyncOn bool `json:"isSyncOn"`
}

type SwapParagraphSeqRequest

type SwapParagraphSeqRequest struct {
	AID int64 `json:"aID"`
	BID int64 `json:"bID"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL