services

package
v0.0.0-...-0d90696 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(user models.User) (interface{}, error)

func DeleteUserByID

func DeleteUserByID(userID int64) error

func GetUserByEmail

func GetUserByEmail(email string) models.User

func GetUserByUserID

func GetUserByUserID(userID int64) models.User

func IsAdmin

func IsAdmin(c *gin.Context) bool

func UpdateUser

func UpdateUser(userID int64, newUser models.User) (models.User, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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