package controller import ( "expenses/common" "expenses/dto" "expenses/model" "github.com/gin-gonic/gin" ) func Info(ctx *gin.Context) { user, _ := ctx.Get("user") common.Success(ctx, gin.H{"user": dto.ToUserDto(user.(model.User))}, "") }