Documentation
¶
Index ¶
- type Code
- type ContextEx
- func (c *ContextEx) Bind(obj any) error
- func (c *ContextEx) BindJSON(obj any) error
- func (c *ContextEx) BindQuery(obj any) error
- func (c *ContextEx) BindWith(obj any, binding binding.Binding) error
- func (c *ContextEx) Failure(code Code, msg string)
- func (c *ContextEx) InternalServerError()
- func (c *ContextEx) LoginError()
- func (c *ContextEx) NoContent()
- func (c *ContextEx) NotFound()
- func (c *ContextEx) ParameterError()
- func (c *ContextEx) RegisterDisabled()
- func (c *ContextEx) Response(status int, code Code, msg string, data interface{})
- func (c *ContextEx) Success(data ...interface{})
- func (c *ContextEx) Unauthorized()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextEx ¶
ContextEx 扩展 Context
func (*ContextEx) InternalServerError ¶
func (c *ContextEx) InternalServerError()
InternalServerError 服务器错误响应
func (*ContextEx) RegisterDisabled ¶
func (c *ContextEx) RegisterDisabled()
RegisterDisabled 注册已关闭响应
Click to show internal directories.
Click to hide internal directories.