dto

package
v0.0.0-...-cc2b1d6 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleCategoriesResponse

type ArticleCategoriesResponse struct {
	ArticleCategories []*models.ArticleCategories
	Metadata          Metadata
}

type ArticleResponse

type ArticleResponse struct {
	Article  []*models.Article `json:"article"`
	Metadata Metadata          `json:"metadata"`
}

type CreateArticle

type CreateArticle struct {
	Article        *models.Article
	CategoriesName []string `json:"categories" validate:"required"`
}

type EditArticle

type EditArticle struct {
	Article        *models.Article
	CategoriesName []string `json:"categories" validate:"required"`
	ListCategories []*models.Category
}

type Metadata

type Metadata struct {
	TotalCount  int `json:"total_count"`
	CurrentPage int `json:"current_page"`
	PageSize    int `json:"page_size"`
	TotalPages  int `json:"total_pages"`
}

type Pagination

type Pagination struct {
	Page   int    `json:"page"`
	Limit  int    `json:"limit"`
	Offset int    `json:"offset"`
	Search string `json:"search"`
}

Jump to

Keyboard shortcuts

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