Documentation ¶
Index ¶
- func FailReturn(c *gin.Context, errorInfo *errcode.ErrorInfo, params ...interface{})
- func SuccessFileReturn(c *gin.Context, contentLength int64, contentType string, reader io.Reader, ...)
- func SuccessJsonReturn(c *gin.Context, v string)
- func SuccessReturn(c *gin.Context, obj interface{})
- type SuccessInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailReturn ¶
func SuccessFileReturn ¶ added in v1.2.3
func SuccessJsonReturn ¶ added in v1.2.3
SuccessJsonReturn given a key message for any value to return json
func SuccessReturn ¶
Types ¶
type SuccessInfo ¶
type SuccessInfo struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.