Documentation ¶
Index ¶
- type INotificationService
- type NotificationService
- func (n *NotificationService) GetNotifications(c context.Context, userId uint, request dto.GetNotificationsRequest) (response []*dto.NotificationResponse, err error)
- func (n *NotificationService) Notify(c context.Context, userId uint, message string) (response *dto.NotificationResponse, err error)
- func (n *NotificationService) Seen(c context.Context, id uint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type INotificationService ¶
type NotificationService ¶
type NotificationService struct {
// contains filtered or unexported fields
}
func New ¶
func New(conf *config.Config, repo repository.INotificationRepository, logger logging.Logger) *NotificationService
func (*NotificationService) GetNotifications ¶
func (n *NotificationService) GetNotifications(c context.Context, userId uint, request dto.GetNotificationsRequest) (response []*dto.NotificationResponse, err error)
func (*NotificationService) Notify ¶
func (n *NotificationService) Notify(c context.Context, userId uint, message string) (response *dto.NotificationResponse, err error)
Click to show internal directories.
Click to hide internal directories.