Documentation ¶
Index ¶
- type Client
- type GinHandle
- func (*GinHandle) DefaultQuery(c *gin.Context, key string, defaultValue string) string
- func (*GinHandle) FormFile(c *gin.Context, key string) (*multipart.FileHeader, error)
- func (*GinHandle) Param(c *gin.Context, key string) string
- func (*GinHandle) Query(c *gin.Context, key string) string
- func (*GinHandle) RetuenOk(c *gin.Context, data interface{})
- func (*GinHandle) ReturnErr(c *gin.Context, r respx.Pt)
- func (*GinHandle) ReturnJSON(c *gin.Context, code int, data interface{})
- func (*GinHandle) ShouldBind(c *gin.Context, s interface{}) error
- func (*GinHandle) ShouldBindJSON(c *gin.Context, s interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type GinHandle ¶ added in v0.0.4
type GinHandle struct{}
func (*GinHandle) DefaultQuery ¶ added in v0.0.4
DefaultQuery 获取get参数,如果没有则返回默认值
func (*GinHandle) ReturnJSON ¶ added in v0.0.5
ReturnJSON 返回json
func (*GinHandle) ShouldBind ¶ added in v0.0.4
ShouldBind Get绑定到结构体
Click to show internal directories.
Click to hide internal directories.