Versions in this module Expand all Collapse all v1 v1.0.0 Sep 7, 2021 Changes in this version + var Default = &response + func Custum(c *gin.Context, data gin.H) + func Error(c *gin.Context, code int, err error, msg string) + func OK(c *gin.Context, data interface{}, msg string) + func PageOK(c *gin.Context, result interface{}, count int, pageIndex int, pageSize int, ...) + type Page struct + Count int + PageIndex int + PageSize int + type Response struct + Code int32 + Msg string + RequestId string + Status string + type Responses interface + Clone func() Responses + SetCode func(int32) + SetData func(interface{}) + SetMsg func(string) + SetSuccess func(bool) + SetTraceID func(string)