package user import ( "api.qobiltu.id/controller" "api.qobiltu.id/models" "api.qobiltu.id/services" "github.com/gin-gonic/gin" ) func Profile(c *gin.Context) { userProfile := services.UserProfileService{} userProfileController := controller.Controller[any, models.AccountDetails, models.AccountDetails]{ Service: &userProfile.Service, } userProfileController.HeaderParse(c, func() { userProfileController.Service.Constructor.AccountID = uint(userProfileController.AccountData.UserID) userProfile.Retrieve() userProfileController.Response(c) }, ) }