Documentation
¶
Index ¶
Constants ¶
View Source
const HTTP_OK int = 200
View Source
const SUCCESS string = "Success"
Variables ¶
This section is empty.
Functions ¶
func Cros ¶
func Cros() gin.HandlerFunc
Types ¶
type R ¶
type R struct { Code int `json:"code" binding:"required"` Msg string `json:"msg" binding:"required"` Data interface{} `json:"data"` }
Http Return
func Error400EmptyObj ¶
func Error500EmptyObj ¶
func OkWithData ¶
func OkWithData(data interface{}) R
func OkWithEmpty ¶
func OkWithEmpty() R
func ReturnEmptyObj ¶
func ReturnEmptyObj() R
func ReturnEmptyObjs ¶
func ReturnEmptyObjs() R
Click to show internal directories.
Click to hide internal directories.