Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Paged ¶ added in v0.0.4
type Paged struct {
TotalRecord int `json:"total_record"`
TotalPage int `json:"total_page"`
Records interface{} `json:"records"`
Offset int `json:"offset"`
Limit int `json:"limit"`
Page int `json:"page"`
PrevPage int `json:"prev_page"`
NextPage int `json:"next_page"`
}
Paged is the response returned by Paging this should be fed to a http request response. If using gin-gonic, you should use c.JSON(200, Paged)
Click to show internal directories.
Click to hide internal directories.