routes

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterByGin

func RegisterByGin(ginApp *gin.Engine)

func UpButterReq

func UpButterReq[T any](action func(ctx component.BetterRequest[T]) component.Response) func(c *gin.Context)

func UpFormReq added in v0.1.1

func UpFormReq[T any](action func(ctx component.BetterRequest[T]) component.Response) func(c *gin.Context)

UpFormReq 强制 Form 绑定

func UpJsonReq added in v0.1.1

func UpJsonReq[T any](action func(ctx component.BetterRequest[T]) component.Response) func(c *gin.Context)

UpJsonReq 强制 JSON 绑定

func UpQueryReq added in v0.1.1

func UpQueryReq[T any](action func(ctx component.BetterRequest[T]) component.Response) func(c *gin.Context)

UpQueryReq 强制 Query 绑定

func UpUriReq added in v0.1.1

func UpUriReq[T any](action func(ctx component.BetterRequest[T]) component.Response) func(c *gin.Context)

UpUriReq 强制 URI 绑定 (Path params)

Types

This section is empty.

Jump to

Keyboard shortcuts

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