improve parameter parsing feature for ghttp.Request

This commit is contained in:
John
2020-01-01 15:20:03 +08:00
parent 604a10400d
commit 821c71bd8d

View File

@ -21,7 +21,7 @@ func Test_Params_Xml_Request(t *testing.T) {
Id int
Name string
Time *time.Time
Pass1 string `p:"password1" v:"password1"`
Pass1 string `p:"password1"`
Pass2 string `p:"password2" v:"required|length:2,20|password3|same:password1#||密码强度不足|两次密码不一致"`
}
p := ports.PopRand()