Documentation ¶
Index ¶
- func BadRequest(c *gin.Context, message string)
- func Forbidden(c *gin.Context)
- func HandleEntError(c *gin.Context, err error)
- func HandleValidatorError(c *gin.Context, err error)
- func NotFound(c *gin.Context, message string)
- func OK(c *gin.Context, obj interface{})
- func ServerError(c *gin.Context)
- func Unauthorized(c *gin.Context)
- func UnprocessableEntity(c *gin.Context, message string, errors map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func HandleEntError ¶
HandleEntError handle Ent error
func HandleValidatorError ¶
HandleValidatorError handle Validator error
func ServerError ¶
func Unauthorized ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.