Documentation ¶
Index ¶
- func CheckRequest(ctx *gin.Context, target interface{}) error
- func GenFilePath(paths ...string) string
- func GetCurrentPath() (string, error)
- func GetOperater(ctx *gin.Context) (int32, string, error)
- func IsSafeSQL(sql string) bool
- func SetHeader(ctx *gin.Context)
- type GinContext
- func (g *GinContext) CheckRequest(target any) (int32, string, error)
- func (g *GinContext) GetHeader(key string) string
- func (g *GinContext) GetOperator() (int32, string, error)
- func (g *GinContext) GetParam(key string) string
- func (g *GinContext) GetQuery(key string) string
- func (g *GinContext) Reply(value any)
- func (g *GinContext) ReplyBadRequest(value any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRequest ¶
func GenFilePath ¶
func GetCurrentPath ¶
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)
Click to show internal directories.
Click to hide internal directories.