diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-13 13:14:43 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-13 13:14:43 +0800 |
commit | 37fae304d3d335d5e0320a2bd73f86d410b71b84 (patch) | |
tree | c2c3b8bd2f0a693ab328caf56ea41ed13d32c075 /modules/auth/auth.go | |
parent | f65d8f9144436d11cdce2614b3520271b31ae288 (diff) | |
download | gitea-37fae304d3d335d5e0320a2bd73f86d410b71b84.tar.gz gitea-37fae304d3d335d5e0320a2bd73f86d410b71b84.zip |
single repository page ui, add spec handler to get repo
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 b085527554..e4748650c2 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(") { |