Documentation ¶
Index ¶
- Constants
- func CheckHandle(c *gin.Context, err error)
- func Fail(c *gin.Context)
- func FailWithDetailed(data interface{}, message string, c *gin.Context)
- func FailWithDetailedAndError(code int, data interface{}, message string, c *gin.Context)
- func FailWithMessage(message string, c *gin.Context)
- func FailWithMessageAndError(err int, message string, c *gin.Context)
- func FileByBytes(c *gin.Context, filename string, data []byte)
- func FileByReader(c *gin.Context, filename string, reader io.Reader) error
- func Ok(c *gin.Context)
- func OkWithData(data interface{}, c *gin.Context)
- func OkWithDetailed(data interface{}, message string, c *gin.Context)
- func OkWithMessage(message string, c *gin.Context)
- func Result(code int, data interface{}, msg string, c *gin.Context)
- type FrontResult
- type PageResult
- type PageResult1
- type PageResultAndTerm
- type Response
Constants ¶
View Source
const ( ERROR = 7 SUCCESS = 0 PARAMERROR = 101 )
Variables ¶
This section is empty.
Functions ¶
func CheckHandle ¶
func FailWithDetailed ¶
func FailWithMessage ¶
func FailWithMessageAndError ¶
func OkWithData ¶
func OkWithDetailed ¶
func OkWithMessage ¶
Types ¶
type FrontResult ¶
type FrontResult struct { List interface{} `json:"list"` Total int64 `json:"total"` }
type PageResult ¶
type PageResult1 ¶
type PageResultAndTerm ¶
Click to show internal directories.
Click to hide internal directories.