Implement incoming webhooks.
Этот коммит содержится в:
@@ -36,6 +36,7 @@ type Store interface {
|
||||
Session() SessionStore
|
||||
OAuth() OAuthStore
|
||||
System() SystemStore
|
||||
Webhook() WebhookStore
|
||||
Close()
|
||||
}
|
||||
|
||||
@@ -137,3 +138,10 @@ type SystemStore interface {
|
||||
Update(system *model.System) StoreChannel
|
||||
Get() StoreChannel
|
||||
}
|
||||
|
||||
type WebhookStore interface {
|
||||
SaveIncoming(webhook *model.IncomingWebhook) StoreChannel
|
||||
GetIncoming(id string) StoreChannel
|
||||
GetIncomingByUser(userId string) StoreChannel
|
||||
DeleteIncoming(webhookId string, time int64) StoreChannel
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user