helper

package
v0.0.0-...-74b72eb Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbLogLevelToLoggerLevel

func DbLogLevelToLoggerLevel(level int) log.Level

func GetAllParamsStringAndClearBody

func GetAllParamsStringAndClearBody(c *gin.Context, clear bool) string

GetAllParamsStringAndClearBody 获取所有参数 @params c *gin.Context @params clear 是否清除body

func GetBodyParams

func GetBodyParams(c *gin.Context, clear bool) map[string]string

func GetHeaderMap

func GetHeaderMap(c *gin.Context) (map[string]string, error)

func GetLoginUserIdFromContext

func GetLoginUserIdFromContext(c context.Context) string

func GetPostFormParams

func GetPostFormParams(c *gin.Context) (map[string]string, error)

GetPostFormParams 获取gin post表单所有参数

func GetQueryParams

func GetQueryParams(c *gin.Context) map[string]string

func GetRequestId

func GetRequestId(c context.Context) string

func IsTestRunning

func IsTestRunning() bool

func LoggerLevelToDbLogLevel

func LoggerLevelToDbLogLevel(level int) logger.LogLevel

func TestRunningPath

func TestRunningPath(path string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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