Versions in this module Expand all Collapse all v1 v1.1.0 Mar 1, 2024 Changes in this version type PageRequest + Order string + Sort string + func (p *PageRequest) GetOrder() string + func (p *PageRequest) GetSort() string v1.0.1 Oct 24, 2023 v1.0.0 Oct 24, 2023 Changes in this version + func Handle(ctx *gin.Context, f func() interface{}) + func HandleResp(ctx *gin.Context, resp any) + func NewBadRequestError(code int, err string) error + func NewError(status, code int, msg string) error + func NewForbiddenError(code int, err string) error + func NewInternalServerError(code int, err string) error + func NewNotFoundError(code int, err string) error + func NewUnauthorizedError(code int, err string) error + func RequestID(ctx context.Context) string + type Error struct + Code int + Msg string + RequestID string + Status int + func (j *Error) Error() string + type JSONResponse struct + Code int + Data interface{} + Msg string + type PageRequest struct + Page int + Size int + func (p *PageRequest) GetLimit() int + func (p *PageRequest) GetOffset() int + func (p *PageRequest) GetPage() int + func (p *PageRequest) GetSize() int + type PageResponse struct + List []T + Total int64