Documentation ¶
Index ¶
- Variables
- func WrapBody[T any](l logger.LoggerV1, fn func(ctx *gin.Context, req T) (Result, error)) gin.HandlerFunc
- func WrapBodyAndToken[Req any, C jwt.Claims](fn func(ctx *gin.Context, req Req, uc C) (Result, error)) gin.HandlerFunc
- func WrapBodyV1[T any](fn func(ctx *gin.Context, req T) (Result, error)) gin.HandlerFunc
- func WrapReq[T any](fn func(ctx *gin.Context, req T, uc jwt.UserClaims) (Result, error)) gin.HandlerFunc
- func WrapToken[C jwt.Claims](fn func(ctx *gin.Context, uc C) (Result, error)) gin.HandlerFunc
- type Result
Constants ¶
This section is empty.
Variables ¶
View Source
var L logger.LoggerV1
L 使用包变量
Functions ¶
func WrapBodyAndToken ¶
func WrapBodyV1 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.