func (auth *AuthController) Profile(c *gin.Context) {
	user := c.MustGet("user").(*(entity.User))

	c.JSON(200, gin.H{
		"name":     user.Name,
		"lastname": user.LastName,
		"email":    user.Email,
		"cpf":      user.Cpf,
	})
}
//Profile is to provide current user info
Profile is to provide current user info
// Profile is to provide current user info
func (auth *AuthController) Profile(c *gin.Context) {
	user := c.MustGet("user").(*(entity.User))
	c.JSON(200, gin.H{
		"name":     user.Name,
		"lastname": user.LastName,
		"email":    user.Email,
		"cpf":      user.Cpf,
	})
}
func ( auth * AuthController ) Profile ( c * gin . Context ) { user := c . MustGet ( " " ) . ( * ( entity . User ) ) c . JSON ( 200 , gin . H { " " : user . Name , " " : user . LastName , " " : user . Email , " " : user . Cpf , } ) }
Profile is to provide current user info
Profile is to provide current user info