Documentation
¶
Index ¶
- Constants
- func ErrorCasbinAuthFail(c *gin.Context, msg interface{})
- func ErrorForbidden(c *gin.Context)
- func ErrorParam(c *gin.Context, wrongParam interface{})
- func ErrorServiceForbidden(c *gin.Context)
- func ErrorSystem(c *gin.Context, msg string, data interface{})
- func ErrorTokenAuthFail(c *gin.Context)
- func ErrorTokenBaseInfo(c *gin.Context)
- func ErrorTokenRefreshFail(c *gin.Context)
- func ErrorTooManyRequests(c *gin.Context)
- func Fail(c *gin.Context, dataCode int, msg string, data interface{})
- func GetToCamel(c *gin.Context) bool
- func ReturnJson(context *gin.Context, httpCode int, dataCode int, msg string, data interface{})
- func ReturnJsonFromString(context *gin.Context, httpCode int, jsonStr string)
- func S(c *gin.Context)
- func SetToCamel(c *gin.Context)
- func Success(c *gin.Context, msg string, data interface{})
- func TokenErrorParam(c *gin.Context, msg string)
- func ValidatorError(c *gin.Context, err error)
Constants ¶
View Source
const Tocamel = "toCamel"
Variables ¶
This section is empty.
Functions ¶
func ErrorCasbinAuthFail ¶
ErrorCasbinAuthFail 405
func GetToCamel ¶
func ReturnJson ¶
func ReturnJsonFromString ¶
func SetToCamel ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.