dto

package
v0.0.0-...-1d93362 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvertisementParamsDto

type AdvertisementParamsDto struct {
	YearFrom     string                  `form:"year_from"`
	YearTo       string                  `form:"year_to" `
	Model        string                  `form:"model" validate:"required,max=50"`
	City         string                  `form:"city"`
	Type         entity.CarTypeEnum      `form:"type"`
	Transmission entity.TransmissionEnum `form:"transmission"`
	BestOffer    bool                    `form:"best_offer"`
	Highlight    bool                    `form:"highlight"`
	Page         int64                   `form:"page"`
	PageSize     int64                   `form:"page_size"`
}

func (AdvertisementParamsDto) Validate

func (apd AdvertisementParamsDto) Validate() error

type Paginated

type Paginated struct {
	TotalPages int64       `json:"total_pages"`
	Total      int64       `json:"total"`
	Page       int64       `json:"page"`
	PageSize   int64       `json:"page_size"`
	Data       interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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