diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-01-13 22:42:55 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-01-13 16:42:55 +0200 |
commit | beab2df1227f9b7e556aa5716d94feb3a3e2088e (patch) | |
tree | ef72c59cc4e3ab7ccaa29ffc5de4d3a4278e348e /modules/notification/ui | |
parent | e5228b8369f7162026b6fa6c1a8a0f07b92d85c7 (diff) | |
download | gitea-beab2df1227f9b7e556aa5716d94feb3a3e2088e.tar.gz gitea-beab2df1227f9b7e556aa5716d94feb3a3e2088e.zip |
Refactor mail notification (#5110)
* mail notification implement interface
* fix file comment year
* use NullNotifier as parent struct of notifiers
Diffstat (limited to 'modules/notification/ui')
-rw-r--r-- | modules/notification/ui/ui.go | 47 |
1 files changed, 1 insertions, 46 deletions
diff --git a/modules/notification/ui/ui.go b/modules/notification/ui/ui.go index f0d708eb54..135e92abfd 100644 --- a/modules/notification/ui/ui.go +++ b/modules/notification/ui/ui.go @@ -13,6 +13,7 @@ import ( type ( notificationService struct { + base.NullNotifier issueQueue chan issueNotificationOpts } @@ -86,49 +87,3 @@ func (ns *notificationService) NotifyPullRequestReview(pr *models.PullRequest, r r.Reviewer.ID, } } - -func (ns *notificationService) NotifyUpdateComment(doer *models.User, c *models.Comment, oldContent string) { -} - -func (ns *notificationService) NotifyDeleteComment(doer *models.User, c *models.Comment) { -} - -func (ns *notificationService) NotifyDeleteRepository(doer *models.User, repo *models.Repository) { -} - -func (ns *notificationService) NotifyForkRepository(doer *models.User, oldRepo, repo *models.Repository) { -} - -func (ns *notificationService) NotifyNewRelease(rel *models.Release) { -} - -func (ns *notificationService) NotifyUpdateRelease(doer *models.User, rel *models.Release) { -} - -func (ns *notificationService) NotifyDeleteRelease(doer *models.User, rel *models.Release) { -} - -func (ns *notificationService) NotifyIssueChangeMilestone(doer *models.User, issue *models.Issue) { -} - -func (ns *notificationService) NotifyIssueChangeContent(doer *models.User, issue *models.Issue, oldContent string) { -} - -func (ns *notificationService) NotifyIssueChangeAssignee(doer *models.User, issue *models.Issue, removed bool) { -} - -func (ns *notificationService) NotifyIssueClearLabels(doer *models.User, issue *models.Issue) { -} - -func (ns *notificationService) NotifyIssueChangeTitle(doer *models.User, issue *models.Issue, oldTitle string) { -} - -func (ns *notificationService) NotifyIssueChangeLabels(doer *models.User, issue *models.Issue, - addedLabels []*models.Label, removedLabels []*models.Label) { -} - -func (ns *notificationService) NotifyCreateRepository(doer *models.User, u *models.User, repo *models.Repository) { -} - -func (ns *notificationService) NotifyMigrateRepository(doer *models.User, u *models.User, repo *models.Repository) { -} |