Documentation ¶
Index ¶
- func ValidateBody(schema interface{}, c *gin.Context) bool
- type Ping
- type ResponseType
- func (ResponseType) BadRequest(c *gin.Context, msg string)
- func (ResponseType) Forbidden(c *gin.Context, msg string)
- func (ResponseType) FromError(c *gin.Context, err exception.Response)
- func (ResponseType) NotFound(c *gin.Context, msg string)
- func (ResponseType) Success(c *gin.Context, data interface{})
- func (ResponseType) Unauthorized(c *gin.Context, msg string)
- type Secret
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateBody ¶
Types ¶
type ResponseType ¶
type ResponseType struct{}
var (
Response ResponseType
)
func (ResponseType) BadRequest ¶
func (ResponseType) BadRequest(c *gin.Context, msg string)
func (ResponseType) FromError ¶
func (ResponseType) FromError(c *gin.Context, err exception.Response)
func (ResponseType) Success ¶
func (ResponseType) Success(c *gin.Context, data interface{})
func (ResponseType) Unauthorized ¶
func (ResponseType) Unauthorized(c *gin.Context, msg string)
Click to show internal directories.
Click to hide internal directories.