handlers

package
v0.0.0-...-b4a6059 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Copyright (c) 2021 Amirhossein Movahedi (@qolzam)

This software is released under the MIT License. https://opensource.org/licenses/MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNotifyEmailHandle

func CheckNotifyEmailHandle(c *fiber.Ctx) error

CheckNotifyEmailHandle handle query on notification

func CreateNotificationHandle

func CreateNotificationHandle(c *fiber.Ctx) error

CreateNotificationHandle handle create a new notification

func DeleteNotificationByUserIdHandle

func DeleteNotificationByUserIdHandle(c *fiber.Ctx) error

DeleteNotificationByUserIdHandle handle delete a Notification but userId

func DeleteNotificationHandle

func DeleteNotificationHandle(c *fiber.Ctx) error

DeleteNotificationHandle handle delete a Notification

func GetNotificationHandle

func GetNotificationHandle(c *fiber.Ctx) error

GetNotificationHandle handle get a notification

func GetNotificationsByUserIdHandle

func GetNotificationsByUserIdHandle(c *fiber.Ctx) error

GetNotificationsByUserIdHandle handle query on notification

func SeenAllNotificationsHandle

func SeenAllNotificationsHandle(c *fiber.Ctx) error

SeenAllNotificationsHandle handle set all notifications seen

func SeenNotificationHandle

func SeenNotificationHandle(c *fiber.Ctx) error

SeenNotificationHandle handle set notification seen

func UpdateNotificationHandle

func UpdateNotificationHandle(c *fiber.Ctx) error

UpdateNotificationHandle handle update a notification

Types

type NotificationAction

type NotificationAction struct {
	Type    string      `json:"type"`
	Payload interface{} `json:"payload"`
}

type UserInfoInReq

type UserInfoInReq struct {
	UserId      uuid.UUID `json:"userId"`
	Username    string    `json:"username"`
	Avatar      string    `json:"avatar"`
	DisplayName string    `json:"displayName"`
	SystemRole  string    `json:"systemRole"`
}

type UserProfileQueryModel

type UserProfileQueryModel struct {
	Limit int64 `query:"limit"`
	Page  int64 `query:"page"`
}

Jump to

Keyboard shortcuts

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