notifications

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNotifications

func GetNotifications(jwtToken string) ([]response.Notification, error)

func GetUnreadNotificationCount

func GetUnreadNotificationCount(jwtToken string) (int, error)

func GetUnreadNotifications

func GetUnreadNotifications(jwtToken string) ([]response.Notification, error)

func MarkNotificationAsRead

func MarkNotificationAsRead(jwtToken string, reqBody MarkAsReadReqBody, notificationId string) error

func MarkNotificationsAsReadInBulk

func MarkNotificationsAsReadInBulk(jwtToken string, reqBody MarkAsReadInBulkReqBody) error

Types

type MarkAsReadInBulkReqBody

type MarkAsReadInBulkReqBody struct {
	NotificationIds string `json:"notificationIds"`
}

type MarkAsReadReqBody

type MarkAsReadReqBody struct {
	Unread bool `json:"unread"`
}

Jump to

Keyboard shortcuts

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