{"modulePath":"github.com/answerdev/answer","version":"v1.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package notification\n\n## Types\n\n```go\ntype ExternalNotificationService struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewExternalNotificationService(\n\tdata *data.Data,\n\tuserNotificationConfigRepo user_notification_config.UserNotificationConfigRepo,\n\tfollowRepo activity_common.FollowRepo,\n\temailService *export.EmailService,\n\tuserRepo usercommon.UserRepo,\n\tnotificationQueueService notice_queue.ExternalNotificationQueueService,\n) *ExternalNotificationService\n```\n\n```go\nfunc (ns *ExternalNotificationService) Handler(ctx context.Context, msg *schema.ExternalNotificationMsg) error\n```\n\n```go\ntype NewQuestionSubscriber struct {\n\tUserID   string                      `json:\"user_id\"`\n\tChannels schema.NotificationChannels `json:\"channels\"`\n}\n```\n\n```go\ntype NotificationService struct {\n\t// contains filtered or unexported fields\n}\n```\nNotificationService user service\n\n```go\nfunc NewNotificationService(\n\tdata *data.Data,\n\tnotificationRepo notficationcommon.NotificationRepo,\n\tnotificationCommon *notficationcommon.NotificationCommon,\n\trevisionService *revision_common.RevisionService,\n\tuserRepo usercommon.UserRepo,\n) *NotificationService\n```\n\n```go\nfunc (ns *NotificationService) ClearIDUnRead(ctx context.Context, userID string, id string) error\n```\n\n```go\nfunc (ns *NotificationService) ClearRedDot(ctx context.Context, req *schema.NotificationClearRequest) (*schema.RedDot, error)\n```\n\n```go\nfunc (ns *NotificationService) ClearUnRead(ctx context.Context, userID string, botTypeStr string) error\n```\n\n```go\nfunc (ns *NotificationService) GetNotificationPage(ctx context.Context, searchCond *schema.NotificationSearch) (\n\tpageModel *pager.PageModel, err error)\n```\n\n```go\nfunc (ns *NotificationService) GetRedDot(ctx context.Context, req *schema.GetRedDot) (*schema.RedDot, error)\n```\n\n","path":"github.com/answerdev/answer/internal/service/notification","name":"notification","synopsis":"","isRedistributable":true}
