Documentation ¶
Index ¶
- func GetNotifications(jwtToken string) ([]response.Notification, error)
- func GetUnreadNotificationCount(jwtToken string) (int, error)
- func GetUnreadNotifications(jwtToken string) ([]response.Notification, error)
- func MarkNotificationAsRead(jwtToken string, reqBody MarkAsReadReqBody, notificationId string) error
- func MarkNotificationsAsReadInBulk(jwtToken string, reqBody MarkAsReadInBulkReqBody) error
- type MarkAsReadInBulkReqBody
- type MarkAsReadReqBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNotifications ¶
func GetNotifications(jwtToken string) ([]response.Notification, 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"`
}
Click to show internal directories.
Click to hide internal directories.