dto

package
v0.0.0-...-7c35eaa Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 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 Paginated

type Paginated[t any] struct {
	Page       int   `json:"page"`
	PerPage    int   `json:"per_page"`
	TotalPage  int   `json:"total_page"`
	TotalCount int64 `json:"total_count"`
	Data       t     `json:"data"`
}

func NewPaginatedRes

func NewPaginatedRes[t any](data t, page, perPage int, totalCount int64) Paginated[t]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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