Versions in this module Expand all Collapse all v1 v1.1.0 Dec 5, 2018 v1.0.0 Nov 30, 2018 Changes in this version + func WrapContext(ctx func(*Context), memo ...string) gin.HandlerFunc + type Context struct + func NewContext(c *gin.Context) *Context + func (a *Context) GetPageIndex() uint + func (a *Context) GetPageSize() uint + func (a *Context) GetTraceID() string + func (a *Context) GetUserID() string + func (a *Context) NewContext() context.Context + func (a *Context) ParseJSON(obj interface{}) error + func (a *Context) ResBadRequest(err error, code ...int) + func (a *Context) ResError(err error, status int, code ...int) + func (a *Context) ResInternalServerError(err error, code ...int) + func (a *Context) ResList(list interface{}) + func (a *Context) ResOK() + func (a *Context) ResPage(total int64, list interface{}) + func (a *Context) ResSuccess(obj interface{})