Documentation ¶
Index ¶
- func AuthCorePluginToken() gin.HandlerFunc
- func AuthCoreRequestToken() gin.HandlerFunc
- func AuthToken() gin.HandlerFunc
- func GetRemoteIp(c *gin.Context) string
- func GetRequestRoles(c *gin.Context) []string
- func GetRequestUser(c *gin.Context) string
- func ReturnApiPermissionError(c *gin.Context)
- func ReturnBatchUpdateError(c *gin.Context, data []*models.ResponseErrorObj)
- func ReturnData(c *gin.Context, data interface{})
- func ReturnDataPermissionDenyError(c *gin.Context)
- func ReturnDataPermissionError(c *gin.Context, err error)
- func ReturnEmptyPageData(c *gin.Context)
- func ReturnError(c *gin.Context, statusCode, statusMessage string, data interface{})
- func ReturnPageData(c *gin.Context, pageInfo models.PageInfo, contents interface{})
- func ReturnParamEmptyError(c *gin.Context, paramName string)
- func ReturnParamValidateError(c *gin.Context, err error)
- func ReturnServerHandleError(c *gin.Context, err error)
- func ReturnSuccess(c *gin.Context)
- func ReturnTokenValidateError(c *gin.Context, err error)
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 GetRequestRoles ¶
func GetRequestUser ¶
func ReturnBatchUpdateError ¶
func ReturnBatchUpdateError(c *gin.Context, data []*models.ResponseErrorObj)
func ReturnData ¶
func ReturnEmptyPageData ¶
func ReturnError ¶
func ReturnPageData ¶
func ReturnParamEmptyError ¶
func ReturnServerHandleError ¶
func ReturnSuccess ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.