Versions in this module Expand all Collapse all v1 v1.0.2 Jul 30, 2020 v1.0.1 Jul 24, 2020 Changes in this version + func GetDefaultAppName() string v1.0.0 Jul 20, 2020 Changes in this version + const AppIDKEY + const LoggerReqBodyKey + const ReqBodyKey + const ResBodyKey + const UserIDKey + func GetAppId(c *gin.Context) string + func GetBody(c *gin.Context) []byte + func GetDefaultAppId() string + func GetScopeAppId(c *gin.Context) string + func GetTableWithPrefix(defaultTableName string) string + func GetToken(c *gin.Context) string + func GetUserID(c *gin.Context) string + 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 ResCustomError(c *gin.Context, err error) + func ResCustomSuccess(c *gin.Context, v interface{}) + 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 SetAppID(c *gin.Context, appID string) + func SetTablePrefix(vals ...string) + func SetUserID(c *gin.Context, userID string)