add Get*Int32/Get*Int64/Get*Uint32/Get*Uint64 functions for ghttp.Request

This commit is contained in:
John 2019-10-10 10:40:38 +08:00
parent f1119e28e8
commit 74d625ff97

View File

@ -70,8 +70,8 @@ func (r *Request) GetQueryInt32(key string, def ...interface{}) int32 {
return r.GetQueryVar(key, def...).Int32()
}
func (r *Request) GetQueryInt64(key string, def ...interface{}) uint64 {
return r.GetQueryVar(key, def...).Uint64()
func (r *Request) GetQueryInt64(key string, def ...interface{}) int64 {
return r.GetQueryVar(key, def...).Int64()
}
func (r *Request) GetQueryInts(key string, def ...interface{}) []int {