payload

package
v0.0.0-...-9df3d9d Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetArticleRequest

type GetArticleRequest struct {
	Id string `json:"id"`
}

type GetArticleResponse

type GetArticleResponse struct {
	Id        string     `json:"id"`
	Author    *string    `json:"author"`
	Title     *string    `json:"title"`
	Body      *string    `json:"body"`
	CreatedAt *time.Time `json:"created_at"`
}

type GetListArticleRequest

type GetListArticleRequest struct {
	Sort      []Sort `json:"sort"`
	Offset    int32  `json:"offset"`
	Limit     int32  `json:"limit" validate:"required,limit"`
	Search    string `json:"search"`
	CreatedAt string `json:"created_at"`
	Author    string `json:"author"`
}

type GetListArticleResponse

type GetListArticleResponse struct {
	ArticleList []GetArticleResponse
}

type Sort

type Sort struct {
	Field  string `json:"field"`
	SortBy string `json:"sort_by"`
}

Jump to

Keyboard shortcuts

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