Documentation
¶
Index ¶
- func Error(c *gin.Context, code int, msg ...string)
- func Error404(c *gin.Context)
- func Error500(c *gin.Context)
- func GenRequest(c *gin.Context, request interface{}) (err error)
- func GetBannerList(c *gin.Context)
- func HandleHello(c *gin.Context)
- func HandleTest(c *gin.Context)
- func ReadBody(c *gin.Context) (body []byte, err error)
- func Success(c *gin.Context, data interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRequest ¶
*
- 将请求的body转换为request数据结构
- @param c
- @param request 传入request数据结构的指针 如 new(TestRequest)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.