Documentation ¶
Index ¶
- func BindForm(ctx *gin.Context)
- func FileUpload(ctx *gin.Context)
- func FileUploadBatch(ctx *gin.Context)
- func GetQueryArrData(ctx *gin.Context)
- func GetQueryData(ctx *gin.Context)
- func GetQueryMapData(ctx *gin.Context)
- func LogTest(ctx *gin.Context)
- func RedirectA(ctx *gin.Context)
- func RedirectB(ctx *gin.Context)
- func SessionTest(ctx *gin.Context)
- func UserAdd(ctx *gin.Context)
- func UserAddBind(ctx *gin.Context)
- func Validate(ctx *gin.Context)
- type Article
- type User
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileUpload ¶
func FileUploadBatch ¶
func GetQueryArrData ¶
GetQueryArrData http://127.0.0.1:9000/query_arr?id=12,322,43
func GetQueryData ¶
func GetQueryMapData ¶
GetQueryMapData http://127.0.0.1:9000/query_map?user[name]=1&user[age]=2
func SessionTest ¶
func UserAdd ¶
UserAdd
curl -X POST \ http://127.0.0.1:9000/user_add \ -H 'Postman-Token: 863e0a7b-442b-480c-8e61-71559c1fb101' \ -H 'cache-control: no-cache' \ -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \ -F name=1 \ -F pwd=2 \ -F love=22 \ -F love=33 \ -F 'user[addr]=aaaaa' \ -F 'user[phone]=99999'
func UserAddBind ¶
Types ¶
type Article ¶
type Article struct { Id int `form:"_"` Title string `form:"title" valid:"Required"` Content string `form:"content" valid:"Min(5)"` Desc string `form:"desc"` }
Article valid : beego验证器
Click to show internal directories.
Click to hide internal directories.