diff options
Diffstat (limited to 'pkg/form/repo.go')
-rw-r--r-- | pkg/form/repo.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/form/repo.go b/pkg/form/repo.go index 4c01d3f8..13d61a2d 100644 --- a/pkg/form/repo.go +++ b/pkg/form/repo.go @@ -195,6 +195,15 @@ func (f *NewDiscordHook) Validate(ctx *macaron.Context, errs binding.Errors) bin return validate(errs, ctx.Data, f, ctx.Locale) } +type NewDingtalkHook struct { + PayloadURL string `binding:"Required;Url"` + Webhook +} + +func (f *NewDingtalkHook) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { + return validate(errs, ctx.Data, f, ctx.Locale) +} + // .___ // | | ______ ________ __ ____ // | |/ ___// ___/ | \_/ __ \ |