service

package
v0.0.0-...-a36e7e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type INotificationService

type INotificationService interface {
	Notify(c context.Context, userId uint, message string) (*dto.NotificationResponse, error)
	Seen(c context.Context, id uint) error
	GetNotifications(c context.Context, userId uint, request dto.GetNotificationsRequest) ([]*dto.NotificationResponse, error)
}

type NotificationService

type NotificationService struct {
	// contains filtered or unexported fields
}

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)

func (*NotificationService) Seen

func (n *NotificationService) Seen(c context.Context, id uint) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL