diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-13 01:01:22 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-13 01:01:22 -0400 |
commit | 6a75b1f7b37dead013f271936c274ac9506d7d41 (patch) | |
tree | bf2c36cdd79df43b2b476fb3592980d093c9392a /modules/auth/auth.go | |
parent | 9b845c11150102894a8bb453d86a335a7c2a64b8 (diff) |
Add create repo feeds
Diffstat (limited to 'modules/auth/auth.go')
-rw-r--r-- | modules/auth/auth.go | 5 |
1 files changed, 5 insertions, 0 deletions
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(") { |