Documentation
¶
Index ¶
- type NotificationService
- func (s *NotificationService) CountNotificationUnread(userID string, companyID string) (int64, error)
- func (s *NotificationService) CreateNotification(notification *models.NotificationModel) error
- func (s *NotificationService) CreateNotificationWithCallback(notification *models.NotificationModel, ...) error
- func (s *NotificationService) DeleteNotification(id string) error
- func (s *NotificationService) GetNotificationDetail(id string) (*models.NotificationModel, error)
- func (s *NotificationService) GetNotifications(request http.Request, search string, userID *string) (paginate.Page, error)
- func (s *NotificationService) MarkAsRead(id string) error
- func (s *NotificationService) Migrate() error
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 (*NotificationService) MarkAsRead ¶
func (s *NotificationService) MarkAsRead(id string) error
func (*NotificationService) Migrate ¶
func (s *NotificationService) Migrate() error
Click to show internal directories.
Click to hide internal directories.