Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProfile ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.