Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JsonResult ¶
type JsonResult struct { Rows interface{} `json:"rows"` Code int `json:"code"` Message interface{} `json:"message"` }
func NewJsonResult ¶
func NewJsonResult(code int, message interface{}, rows interface{}) *JsonResult
type PageResult ¶
type PageResult struct { Rows interface{} `json:"rows"` Code int `json:"code"` Total int64 `json:"total"` PageNum int `json:"page_num"` PageSize int `json:"page_size"` }
func NewPageResult ¶
func NewPageResult(code int, total int64, pageNum int, pageSize int, rows interface{}) *PageResult
type ResultFunc ¶
type ResultFunc func(result interface{}) func(output output)
func Resp ¶
func Resp(ctx *gin.Context) ResultFunc
Click to show internal directories.
Click to hide internal directories.