Documentation
¶
Index ¶
- func GetAttrId(g *gin.Context) int
- func GetCid(ctx *gin.Context) int
- func GetPage(c *gin.Context) int
- func GetPageOffset(page, pageSize int) int
- func GetPageSize(c *gin.Context) int
- func GetUid(ctx *gin.Context) int
- func ResponseData(g *gin.Context, data interface{})
- func ResponseErr(g *gin.Context, err error)
- func ResponseSuccess(g *gin.Context)
- func ToResponseList(g *gin.Context, list interface{}, totalRows int)
- type Pager
- type Pagination
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPageOffset ¶
func GetPageSize ¶
func ResponseData ¶
func ResponseErr ¶
func ResponseSuccess ¶
func ToResponseList ¶
Types ¶
type Pagination ¶
type Pagination struct { Limit int64 `json:"limit"` Offset int64 `json:"offset"` TotalRows int64 `json:"total_rows"` }
func GetPagination ¶
func GetPagination(c *gin.Context) *Pagination
Click to show internal directories.
Click to hide internal directories.