user

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyDB            = "admin.user.gorm.db"
	KeyNoCheckRouter = "admin.user.router.nocheck"
	KeyCheckRouter   = "admin.user.router.check"
)

Variables

This section is empty.

Functions

func CreateUser added in v0.2.0

func CreateUser(user *model.User) error

func CurrentUser

func CurrentUser(c *fiber.Ctx) *model.User

func GetByEmail added in v0.2.0

func GetByEmail(email string) (error, *model.User)

func GetByID added in v0.2.0

func GetByID(id uint) *model.User

func SuperAccessCheck

func SuperAccessCheck(c *fiber.Ctx, obj *model.AdminObject) error

func UpdateFields added in v0.2.0

func UpdateFields(user *model.User, vals map[string]any) error

func UpdateLoginTime added in v0.2.0

func UpdateLoginTime(userID uint) error

func UpdatePassword added in v0.2.0

func UpdatePassword(user *model.User, password string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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