req

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInt64

func GetInt64(c *gin.Context, key string) int64

func GetUserId

func GetUserId(ctx *gin.Context) (int64, bool)

func GetUserIdUUID added in v1.0.1

func GetUserIdUUID(ctx *gin.Context) (uuid.UUID, bool)

func JsonParam

func JsonParam(c *gin.Context, obj any) error

func Path added in v1.0.1

func Path(ctx *gin.Context, paramKey string, value any) error

func PathInArray

func PathInArray(ctx *gin.Context, method string, urls []string) bool

func PathInt

func PathInt(ctx *gin.Context, paramKey string) (int64, error)

func PathParam

func PathParam(ctx *gin.Context, paramKey string) string

func QueryParam

func QueryParam(c *gin.Context, obj any) error

func StringToInt64

func StringToInt64(param string) (int64, error)

func XMLParam

func XMLParam(ctx *gin.Context, obj any) error

Types

type PageInfo

type PageInfo struct {
	Page     int `json:"page" form:"page"`
	PageSize int `json:"pageSize" form:"pageSize"`
}

Jump to

Keyboard shortcuts

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