Documentation ¶
Index ¶
- func DeleteAUser(userIDStr string, db *gorm.DB, c *gin.Context) (int, error)
- func GetAUser(userIDStr string, db *gorm.DB, c *gin.Context) (*models.User, int, error)
- func GetAUserOrganisation(userIDStr string, db *gorm.DB, c *gin.Context) (*[]models.Organisation, int, error)
- func GetAllUsers(c *gin.Context, db *gorm.DB) ([]models.User, *postgresql.PaginationResponse, int, error)
- func GetUser(userIDStr string, db *gorm.DB) (models.User, int, error)
- func GetUserByEmail(email string, db *gorm.DB) (models.User, error)
- func GetUserDataPrivacySettings(userIDStr string, db *gorm.DB, c *gin.Context) (*models.DataPrivacySettings, int, error)
- func GetUserRegion(userIDStr string, db *gorm.DB, c *gin.Context) (*models.UserRegionTimezoneLanguage, int, error)
- func ReplaceUserRole(userID string, roleID int, db *gorm.DB) (gin.H, error)
- func UpdateARegion(userData models.UserRegionTimezoneLanguage, userIDStr string, db *gorm.DB, ...) (*models.UserRegionTimezoneLanguage, int, error)
- func UpdateAUser(userData models.UpdateUserRequestModel, userIDStr string, db *gorm.DB, ...) (*models.User, int, error)
- func UpdateUserDataPrivacySettings(userData models.DataPrivacySettings, userIDStr string, db *gorm.DB, ...) (*models.DataPrivacySettings, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAUserOrganisation ¶
func GetAllUsers ¶
func GetAllUsers(c *gin.Context, db *gorm.DB) ([]models.User, *postgresql.PaginationResponse, int, error)
func GetUserRegion ¶
func UpdateARegion ¶
func UpdateAUser ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.