From c50a3503e6e8ece0dabd109932a72fe093c3cab3 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 26 Nov 2015 17:33:45 -0500 Subject: introduce git-shell --- modules/auth/repo_form.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'modules/auth/repo_form.go') diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index 8e10dc24db..b876f27910 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -237,3 +237,21 @@ type EditReleaseForm struct { func (f *EditReleaseForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { return validate(errs, ctx.Data, f, ctx.Locale) } + +// __ __.__ __ .__ +// / \ / \__| | _|__| +// \ \/\/ / | |/ / | +// \ /| | <| | +// \__/\ / |__|__|_ \__| +// \/ \/ + +type NewWikiForm struct { + Title string `binding:"Required"` + Content string + Message string +} + +// FIXME: use code generation to generate this method. +func (f *NewWikiForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { + return validate(errs, ctx.Data, f, ctx.Locale) +} -- cgit v1.2.3