File size: 227 Bytes
131eba4
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
package utils

import (
	"github.com/gin-gonic/gin"
	"pweb-api.abdanhafidz.com/models"
)

func GetAccount(c *gin.Context) models.AccountData {
	cParam, _ := c.Get("accountData")
	return cParam.(models.AccountData)
}