handlers

package
v0.7.88 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJwtToken

func CreateJwtToken(user map[string]interface{}, role int64) (string, error)

func DeleteUser

func DeleteUser(c *fiber.Ctx) error

func GetDeletedUsers

func GetDeletedUsers(c *fiber.Ctx) error

func GetPage

func GetPage(c *fiber.Ctx) int

func GetPermissions

func GetPermissions(c *fiber.Ctx) error

func GetRoles

func GetRoles(c *fiber.Ctx) error

func GetUsers

func GetUsers(c *fiber.Ctx) error

func LambdaConfig

func LambdaConfig(c *fiber.Ctx) error

func Login

func Login(c *fiber.Ctx) error

func LoginPage

func LoginPage(c *fiber.Ctx) error

func Logout

func Logout(c *fiber.Ctx) error

func PasswordReset

func PasswordReset(c *fiber.Ctx) error

func PermissionData

func PermissionData(roleID int64) map[string]interface{}

func SearchUsers

func SearchUsers(c *fiber.Ctx) error

func SendForgotMail

func SendForgotMail(c *fiber.Ctx) error

Types

type LoginRequest

type LoginRequest struct {
	Login    string `json:"login" xml:"login" form:"login" query:"login"`
	Password string `json:"password" xml:"password" form:"password" query:"password"`
}

type Permissions

type Permissions struct {
	DefaultMenu string      `json:"default_menu"`
	Extra       interface{} `json:"extra"`
	MenuID      int         `json:"menu_id"`
	Permissions interface{} `json:"permissions"`
}

Jump to

Keyboard shortcuts

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