Documentation
¶
Index ¶
- func Wrap(fn func(ctx *gin.Context) (Result, error)) gin.HandlerFunc
- func WrapBody[Req any](fn func(ctx *gin.Context, req Req) (Result, error)) gin.HandlerFunc
- func WrapFinder(fn func(ctx *gin.Context) (Result, error)) gin.HandlerFunc
- func WrapFinderBody[Req any](fn func(ctx *gin.Context, req Req) (Result, error)) gin.HandlerFunc
- func Ws(fn func(ctx *gin.Context) error) gin.HandlerFunc
- type ErrorCoder
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapFinder ¶ added in v1.8.0
func WrapFinderBody ¶ added in v1.8.0
Types ¶
type ErrorCoder ¶ added in v1.11.1
ErrorCoder 定义了包含错误码和错误消息的错误接口
Click to show internal directories.
Click to hide internal directories.