user

package
v0.0.0-...-6098c1d Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProfile

func GetProfile(c *fiber.Ctx) error

GetProfile - Retrieves the user profile. This function fetches the profile data of the currently authenticated user. The user ID is extracted from the request context (`c.Locals("user_id")`). If the profile is not found, it returns a 404 error.

func UpdateProfile

func UpdateProfile(c *fiber.Ctx) error

UpdateProfile - Updates the user's profile. This function allows authenticated users to update their profile information, including address, backup phone, birthdate, and gender. The user ID is extracted from the request context (`c.Locals("user_id")`). If the profile is found, the provided fields are updated and saved to the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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