Documentation ¶
Index ¶
- func Actions(ctx *gin.Context) []string
- func Download(ctx *gin.Context, fileUrl string, fileName string, remove bool)
- func ParamFloat64(ctx *gin.Context, key string) (float64, bool)
- func ParamInt(ctx *gin.Context, key string) (int, bool)
- func ParamInt64(ctx *gin.Context, key string) (int64, bool)
- func PostFormFloat64(ctx *gin.Context, key string) (float64, bool)
- func PostFormInt(ctx *gin.Context, key string) (int, bool)
- func PostFormInt64(ctx *gin.Context, key string) (int64, bool)
- func QueryFloat64(ctx *gin.Context, key string) (float64, bool)
- func QueryInt(ctx *gin.Context, key string) (int, bool)
- func QueryInt64(ctx *gin.Context, key string) (int64, bool)
- func QueryPagerInit(ctx *gin.Context) (int, int, int)
- func SafeData(data string) string
- func SafePOST(ctx *gin.Context)
- func SafeQuery(ctx *gin.Context, key string) string
- type Upload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParamFloat64 ¶
小数型 float64 路由参数获取 ?id=123 返回 123, true ?id=a 返回 0, false
func ParamInt64 ¶
整数型 int64 Param 参数获取 路由定义 /:id 访问 /123 返回 123, true 路由定义 /:id 访问 /abc 返回 0, false
func PostFormFloat64 ¶
float64 浮点型 POST 数据获取
func PostFormInt64 ¶
整数型 int64 POST 数据获取
func QueryFloat64 ¶
小数型 float64 url 参数获取 ?id=123 返回 123, true ?id=a 返回 0, false
func QueryInt64 ¶
整数型 int64 url 参数获取 ?id=123 返回 123, true ?id=a 返回 0, false
Types ¶
Click to show internal directories.
Click to hide internal directories.