Documentation ¶
Index ¶
- Constants
- func Accepted(c *gin.Context, data interface{})
- func BadRequest(c *gin.Context, data interface{})
- func Conflict(c *gin.Context, data interface{})
- func Created(c *gin.Context, data interface{})
- func Forbidden(c *gin.Context, data interface{})
- func Gone(c *gin.Context)
- func InternalServerError(c *gin.Context, data interface{})
- func MethodNotAllowed(c *gin.Context, data interface{})
- func NoContent(c *gin.Context)
- func NotAcceptable(c *gin.Context, data interface{})
- func NotFound(c *gin.Context)
- func RequestEntityTooLarge(c *gin.Context)
- func RequestTimeout(c *gin.Context)
- func RequestURITooLong(c *gin.Context)
- func ServiceUnavailable(c *gin.Context, data interface{})
- func Success(c *gin.Context, data interface{})
- func TooManyRequests(c *gin.Context, data interface{})
- func Unauthorized(c *gin.Context, data interface{})
- func UnsupportedMediaType(c *gin.Context, data interface{})
- type Response
Constants ¶
View Source
const (
SUCCESS = iota
)
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
BadRequest 400 客户端错误, 用于请求语法/参数错误。
func InternalServerError ¶
InternalServerError 500 服务器内部错误
func MethodNotAllowed ¶
MethodNotAllowed 405 请求方法不被服务器允许
func RequestEntityTooLarge ¶
RequestEntityTooLarge 413 请求实体数据太大
func ServiceUnavailable ¶
ServiceUnavailable 503 服务器暂时处理不可用
func TooManyRequests ¶
TooManyRequests 429 请求次数超过允许范围
func UnsupportedMediaType ¶
UnsupportedMediaType 415 不支持的媒资
Types ¶
Click to show internal directories.
Click to hide internal directories.