Documentation ¶
Index ¶
- func AbortResponse(ctx *gin.Context, statusCode int, succeed bool, message string, results any, ...)
- func BadRequestResponse(ctx *gin.Context, error string, data any)
- func FailedResponse(ctx *gin.Context, status int, error string)
- func GeneralResponse(ctx *gin.Context, statusCode int, succeed bool, message string, results any, ...)
- func NotFoundResponse(ctx *gin.Context, error string)
- func OKResponse(ctx *gin.Context)
- func SuccessCreateResponse(ctx *gin.Context)
- func SuccessResponse(ctx *gin.Context, message string, results any)
- func SuccessResponseWithMeta(ctx *gin.Context, message string, results, metas any)
- func UnauthorizedResponse(ctx *gin.Context, statusCode int, error string)
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbortResponse ¶
func GeneralResponse ¶
func NotFoundResponse ¶
func OKResponse ¶
func SuccessCreateResponse ¶
func SuccessResponseWithMeta ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.