From 6a75b1f7b37dead013f271936c274ac9506d7d41 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 13 Mar 2014 01:01:22 -0400 Subject: Add create repo feeds --- modules/auth/auth.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules') diff --git a/modules/auth/auth.go b/modules/auth/auth.go index b0855275..e4748650 100644 --- a/modules/auth/auth.go +++ b/modules/auth/auth.go @@ -90,6 +90,11 @@ func (f *LogInForm) Validate(errors *binding.Errors, req *http.Request, context validate(errors, data, f) } +type FeedsForm struct { + UserId int64 `form:"userid" binding:"Required"` + Offset int64 `form:"offset"` +} + func getMinMaxSize(field reflect.StructField) string { for _, rule := range strings.Split(field.Tag.Get("binding"), ";") { if strings.HasPrefix(rule, "MinSize(") || strings.HasPrefix(rule, "MaxSize(") { -- cgit v1.2.3