Versions in this module Expand all Collapse all v0 v0.1.1 Feb 25, 2020 v0.1.0 Feb 25, 2020 Changes in this version + const ResBodyKey + const TraceIDKey + const UserIDKey + func GetPageIndex(c *gin.Context) int + func GetPageSize(c *gin.Context) int + func GetPaginationParam(c *gin.Context) *schema.PaginationParam + func GetToken(c *gin.Context) string + func GetTraceID(c *gin.Context) string + func GetUserID(c *gin.Context) string + func NewContext(c *gin.Context) context.Context + func ParseForm(c *gin.Context, obj interface{}) error + func ParseJSON(c *gin.Context, obj interface{}) error + func ParseQuery(c *gin.Context, obj interface{}) error + func ResError(c *gin.Context, err error, status ...int) + func ResJSON(c *gin.Context, status int, v interface{}) + func ResList(c *gin.Context, v interface{}) + func ResOK(c *gin.Context) + func ResPage(c *gin.Context, v interface{}, pr *schema.PaginationResult) + func ResSuccess(c *gin.Context, v interface{}) + func SetUserID(c *gin.Context, userID string)