notification

package
v1.0.44 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationService

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

func NewNotificationService

func NewNotificationService(ctx *context.ERPContext) *NotificationService

func (*NotificationService) CountNotificationUnread

func (s *NotificationService) CountNotificationUnread(userID string, companyID string) (int64, error)

func (*NotificationService) CreateNotification

func (s *NotificationService) CreateNotification(notification *models.NotificationModel) error

func (*NotificationService) CreateNotificationWithCallback

func (s *NotificationService) CreateNotificationWithCallback(notification *models.NotificationModel, callback func(notification *models.NotificationModel)) error

func (*NotificationService) DeleteNotification

func (s *NotificationService) DeleteNotification(id string) error

func (*NotificationService) GetNotificationDetail

func (s *NotificationService) GetNotificationDetail(id string) (*models.NotificationModel, error)

func (*NotificationService) GetNotifications

func (s *NotificationService) GetNotifications(request http.Request, search string, userID *string) (paginate.Page, error)

func (*NotificationService) MarkAsRead

func (s *NotificationService) MarkAsRead(id string) error

func (*NotificationService) Migrate

func (s *NotificationService) Migrate() error

Jump to

Keyboard shortcuts

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