middleware

package
v0.0.0-...-1bb2421 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthCorePluginToken

func AuthCorePluginToken() gin.HandlerFunc

func AuthCoreRequestToken

func AuthCoreRequestToken() gin.HandlerFunc

func AuthToken

func AuthToken() gin.HandlerFunc

func GetRemoteIp

func GetRemoteIp(c *gin.Context) string

func GetRequestRoles

func GetRequestRoles(c *gin.Context) []string

func GetRequestUser

func GetRequestUser(c *gin.Context) string

func ReturnApiPermissionError

func ReturnApiPermissionError(c *gin.Context)

func ReturnBatchUpdateError

func ReturnBatchUpdateError(c *gin.Context, data []*models.ResponseErrorObj)

func ReturnData

func ReturnData(c *gin.Context, data interface{})

func ReturnDataPermissionDenyError

func ReturnDataPermissionDenyError(c *gin.Context)

func ReturnDataPermissionError

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

func ReturnEmptyPageData

func ReturnEmptyPageData(c *gin.Context)

func ReturnError

func ReturnError(c *gin.Context, statusCode, statusMessage string, data interface{})

func ReturnPageData

func ReturnPageData(c *gin.Context, pageInfo models.PageInfo, contents interface{})

func ReturnParamEmptyError

func ReturnParamEmptyError(c *gin.Context, paramName string)

func ReturnParamValidateError

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

func ReturnServerHandleError

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

func ReturnSuccess

func ReturnSuccess(c *gin.Context)

func ReturnTokenValidateError

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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