Versions in this module Expand all Collapse all v0 v0.1.4 Jun 2, 2026 Changes in this version + const CodeBadRequest + const CodeForbidden + const CodeInternalError + const CodeNotFound + const CodeSuccess + const CodeUnauthorized + func BadRequest(c transportcontract.Context, message string) + func Error(c transportcontract.Context, err error) + func ErrorWithData(c transportcontract.Context, err error, data any) + func ErrorWithStatus(c transportcontract.Context, status int, err error) + func Forbidden(c transportcontract.Context, message string) + func InternalError(c transportcontract.Context, message string) + func NotFound(c transportcontract.Context, message string) + func Success(c transportcontract.Context, data any) + func SuccessPaginated(c transportcontract.Context, items any, total int64, page, pageSize int) + func SuccessWithMessage(c transportcontract.Context, message string, data any) + func SuccessWithStatus(c transportcontract.Context, status int, data any) + func Unauthorized(c transportcontract.Context, message string) + type BizError struct + func NewBizError(code int, message string) *BizError + func (e *BizError) Code() int + func (e *BizError) Error() string + func (e *BizError) Message() string + type BusinessError interface + Code func() int + Message func() string + type PaginatedData struct + Items any + Page int + PageSize int + Total int64 + type Response struct + Code int + Data any + Message string