forked from forgejo/forgejo
[REFACTOR] add Icon to webhook.Interface
This commit is contained in:
parent
bc04183e47
commit
120fa61a0a
15 changed files with 54 additions and 2 deletions
|
@ -6,6 +6,7 @@ package webhook
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
|
@ -21,6 +22,10 @@ type wechatworkHandler struct{}
|
|||
func (wechatworkHandler) Type() webhook_module.HookType { return webhook_module.WECHATWORK }
|
||||
func (wechatworkHandler) Metadata(*webhook_model.Webhook) any { return nil }
|
||||
|
||||
func (wechatworkHandler) Icon(size int) template.HTML {
|
||||
return imgIcon("wechatwork.png", size)
|
||||
}
|
||||
|
||||
func (wechatworkHandler) FormFields(bind func(any)) FormFields {
|
||||
var form struct {
|
||||
forms.WebhookForm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue