diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-02-12 16:48:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-12 08:48:28 +0000 |
commit | 83a8944fcf64af9bf5b0a4e233f9a7f917838a4d (patch) | |
tree | ebb4436506a4e36939fcfa358ccb09dfd3a01d3a /modules/auth/repo_form.go | |
parent | ea7ad382e78486fc881bf46d9c1c004e3f311163 (diff) | |
download | gitea-83a8944fcf64af9bf5b0a4e233f9a7f917838a4d.tar.gz gitea-83a8944fcf64af9bf5b0a4e233f9a7f917838a4d.zip |
Add feishu webhook support (#10229)
Add feishu webhook support
Diffstat (limited to 'modules/auth/repo_form.go')
-rw-r--r-- | modules/auth/repo_form.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index a5071de47e..932976b6f9 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -313,6 +313,17 @@ func (f *NewMSTeamsHookForm) Validate(ctx *macaron.Context, errs binding.Errors) return validate(errs, ctx.Data, f, ctx.Locale) } +// NewFeishuHookForm form for creating feishu hook +type NewFeishuHookForm struct { + PayloadURL string `binding:"Required;ValidUrl"` + WebhookForm +} + +// Validate validates the fields +func (f *NewFeishuHookForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { + return validate(errs, ctx.Data, f, ctx.Locale) +} + // .___ // | | ______ ________ __ ____ // | |/ ___// ___/ | \_/ __ \ |