response

package
v0.0.52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const Tocamel = "toCamel"

Variables

This section is empty.

Functions

func ErrorCasbinAuthFail

func ErrorCasbinAuthFail(c *gin.Context, msg interface{})

ErrorCasbinAuthFail 405

func ErrorForbidden

func ErrorForbidden(c *gin.Context)

ErrorForbidden token 403

func ErrorParam

func ErrorParam(c *gin.Context, wrongParam interface{})

ErrorParam params 403

func ErrorServiceForbidden

func ErrorServiceForbidden(c *gin.Context)

ErrorServiceForbidden 403

func ErrorSystem

func ErrorSystem(c *gin.Context, msg string, data interface{})

ErrorSystem 500

func ErrorTokenAuthFail

func ErrorTokenAuthFail(c *gin.Context)

ErrorTokenAuthFail token 401

func ErrorTokenBaseInfo

func ErrorTokenBaseInfo(c *gin.Context)

ErrorTokenBaseInfo token 400

func ErrorTokenRefreshFail

func ErrorTokenRefreshFail(c *gin.Context)

ErrorTokenRefreshFail 401

func ErrorTooManyRequests

func ErrorTooManyRequests(c *gin.Context)

StatusTooManyRequests 429

func Fail

func Fail(c *gin.Context, dataCode int, msg string, data interface{})

func GetToCamel

func GetToCamel(c *gin.Context) bool

func ReturnJson

func ReturnJson(context *gin.Context, httpCode int, dataCode int, msg string, data interface{})

func ReturnJsonFromString

func ReturnJsonFromString(context *gin.Context, httpCode int, jsonStr string)

func S

func S(c *gin.Context)

func SetToCamel

func SetToCamel(c *gin.Context)

func Success

func Success(c *gin.Context, msg string, data interface{})

func TokenErrorParam

func TokenErrorParam(c *gin.Context, msg string)

TokenErrorParam params 403

func ValidatorError

func ValidatorError(c *gin.Context, err error)

ValidatorError 400

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL