helper

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckResourceCodeInProject

func CheckResourceCodeInProject(ctx *fiber.Ctx, projectID uint64, codes ...string) (uid uint64, success bool, err error)

func GetCurrentUserDataPermit

func GetCurrentUserDataPermit(ctx *fiber.Ctx) (int, error)

func GetCurrentUserDataPermitInProject

func GetCurrentUserDataPermitInProject(ctx *fiber.Ctx, projectID uint64) (int, error)

func GetCurrentUserID

func GetCurrentUserID(ctx *fiber.Ctx) (uint64, error)

func GetUserRoleIdsInProject

func GetUserRoleIdsInProject(uid, projectID uint64) (roleIDs []uint64, err error)

func HasResourceCode

func HasResourceCode(uid uint64, codes ...string) (hasAuth bool, userDataPerm int, err error)

func HasResourceCodeInProject

func HasResourceCodeInProject(uid, projectID uint64, codes ...string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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