Documentation ¶
Index ¶
- Constants
- func HTML(result interface{}, name string, c *gin.Context, code ...int)
- func Json(result interface{}, c *gin.Context, code ...int)
- func Jsonp(result interface{}, c *gin.Context, code ...int)
- func ProtoBuf(result interface{}, c *gin.Context, code ...int)
- func PureJSON(result interface{}, c *gin.Context, code ...int)
- func String(result interface{}, format string, c *gin.Context, code ...int)
- func XML(result interface{}, c *gin.Context, code ...int)
- func YAML(result interface{}, c *gin.Context, code ...int)
- type Page
- type Write
Constants ¶
View Source
const ( //ERROR Default error code returned ERROR = 403 //SUCCESS Default success code return SUCCESS = 200 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Page ¶
type Page struct { Total int64 `json:"total"` //Total total pages List interface{} `json:"list"` //List json data }
Page Pagination return
type Write ¶
type Write struct { Code int `json:"code"` //Code Msg string `json:"msg"` //Msg Prompt message Data interface{} `json:"data"` //Data Error string `json:"error"` //Error message }
Write Return parameter
Click to show internal directories.
Click to hide internal directories.