Documentation
¶
Index ¶
- func Fail(c *gin.Context, code int, args ...interface{})
- func Ok(c *gin.Context, args ...interface{})
- func Out(c *gin.Context, code int, args ...interface{})
- func Register(name string, sf Strapper)
- func Routers(r gin.IRouter, names ...string)
- type Error
- type FieldError
- type IError
- type StrapFunc
- type Strapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct { Code int `json:"code" description:"错误代码"` Message string `json:"message,required" description:"错误信息"` Field string `json:"field,omitempty" description:"错误字段,可选,多用于表单校验"` }
Error ...
Click to show internal directories.
Click to hide internal directories.