handlerhelper

package
v0.0.0-...-2f4d8a3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleFunction

func HandleFunction(c *gin.Context, fn func(organizationID domain.OrganizationID, operatorID domain.AppUserID) error, errorHandle func(c *gin.Context, err error) bool)

func HandleRoleFunction

func HandleRoleFunction(c *gin.Context, targetRole string, fn func(organizationID domain.OrganizationID, operatorID domain.AppUserID) error, errorHandle func(c *gin.Context, err error) bool)

func HandleSecuredFunction

func HandleSecuredFunction(c *gin.Context, fn func(organizationID domain.OrganizationID, operatorID domain.AppUserID) error, errorHandle func(c *gin.Context, err error) bool)

Types

type IDResponse

type IDResponse struct {
	ID uint
}

Jump to

Keyboard shortcuts

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