From beab2df1227f9b7e556aa5716d94feb3a3e2088e Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 13 Jan 2019 22:42:55 +0800 Subject: Refactor mail notification (#5110) * mail notification implement interface * fix file comment year * use NullNotifier as parent struct of notifiers --- modules/notification/ui/ui.go | 47 +------------------------------------------ 1 file changed, 1 insertion(+), 46 deletions(-) (limited to 'modules/notification/ui') 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) { -} -- cgit v1.2.3