Documentation ¶
Index ¶
- type Handler
- func (th *Handler) GetFormFile(c *gin.Context, key string) (multipart.File, *multipart.FileHeader, error)
- func (th *Handler) GetParam(c *gin.Context, key string) string
- func (th *Handler) GetQueryDefault(c *gin.Context, key string, defaultVal string) string
- func (th *Handler) Send(c *gin.Context, data interface{}, r ecode.BizErr)
- func (th *Handler) SendErr(c *gin.Context, data interface{}, err ecode.BizErr)
- func (th *Handler) SendError(c *gin.Context, err error, bizerr ecode.BizErr)
- func (th *Handler) SendSucc(c *gin.Context, data interface{}, err ecode.BizErr)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
func (*Handler) GetFormFile ¶
func (th *Handler) GetFormFile(c *gin.Context, key string) (multipart.File, *multipart.FileHeader, error)
GetFormFile 获取file
func (*Handler) GetQueryDefault ¶
GetQueryDefault 获取参数(带默认)
Click to show internal directories.
Click to hide internal directories.