single repository page ui, add spec handler to get repo

This commit is contained in:
FuXiaoHei 2014-03-13 13:14:43 +08:00
parent f65d8f9144
commit 37fae304d3
8 changed files with 39 additions and 30 deletions

View file

@ -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(") {