From 37fae304d3d335d5e0320a2bd73f86d410b71b84 Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Thu, 13 Mar 2014 13:14:43 +0800 Subject: single repository page ui, add spec handler to get repo --- modules/auth/auth.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/auth') 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