user

package
v0.0.0-...-026aa9f Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAUser

func DeleteAUser(userIDStr string, db *gorm.DB, c *gin.Context) (int, error)

func GetAUser

func GetAUser(userIDStr string, db *gorm.DB, c *gin.Context) (*models.User, int, error)

func GetAUserOrganisation

func GetAUserOrganisation(userIDStr string, db *gorm.DB, c *gin.Context) (*[]models.Organisation, int, error)

func GetAllUsers

func GetAllUsers(c *gin.Context, db *gorm.DB) ([]models.User, *postgresql.PaginationResponse, int, error)

func GetUser

func GetUser(userIDStr string, db *gorm.DB) (models.User, int, error)

func GetUserByEmail

func GetUserByEmail(email string, db *gorm.DB) (models.User, error)

func GetUserDataPrivacySettings

func GetUserDataPrivacySettings(userIDStr string,
	db *gorm.DB, c *gin.Context) (*models.DataPrivacySettings, int, error)

func GetUserRegion

func GetUserRegion(userIDStr string,
	db *gorm.DB, c *gin.Context) (*models.UserRegionTimezoneLanguage, int, error)

func ReplaceUserRole

func ReplaceUserRole(userID string, roleID int, db *gorm.DB) (gin.H, error)

func UpdateARegion

func UpdateARegion(userData models.UserRegionTimezoneLanguage, userIDStr string,
	db *gorm.DB, c *gin.Context) (*models.UserRegionTimezoneLanguage, int, error)

func UpdateAUser

func UpdateAUser(userData models.UpdateUserRequestModel, userIDStr string, db *gorm.DB, c *gin.Context) (*models.User, int, error)

func UpdateUserDataPrivacySettings

func UpdateUserDataPrivacySettings(userData models.DataPrivacySettings, userIDStr string,
	db *gorm.DB, c *gin.Context) (*models.DataPrivacySettings, int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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