genService

package
v0.0.0-...-05e86ca Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRequest

func CheckRequest(ctx *gin.Context, target interface{}) error

func GenFilePath

func GenFilePath(paths ...string) string

func GetCurrentPath

func GetCurrentPath() (string, error)

func GetOperater

func GetOperater(ctx *gin.Context) (int32, string, error)

func IsSafeSQL

func IsSafeSQL(sql string) bool

func SetHeader

func SetHeader(ctx *gin.Context)

Types

type GinContext

type GinContext struct {
	// contains filtered or unexported fields
}

func NewGinContext

func NewGinContext(ctx *gin.Context) *GinContext

func (*GinContext) CheckRequest

func (g *GinContext) CheckRequest(target any) (int32, string, error)

func (*GinContext) GetHeader

func (g *GinContext) GetHeader(key string) string

func (*GinContext) GetOperator

func (g *GinContext) GetOperator() (int32, string, error)

func (*GinContext) GetParam

func (g *GinContext) GetParam(key string) string

func (*GinContext) GetQuery

func (g *GinContext) GetQuery(key string) string

func (*GinContext) Reply

func (g *GinContext) Reply(value any)

func (*GinContext) ReplyBadRequest

func (g *GinContext) ReplyBadRequest(value any)

Jump to

Keyboard shortcuts

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