// Profile get current authorized user info
Profile get current authorized user info
// Profile get current authorized user info
func (Auth) Profile(c *gin.Context) {
	user, err := global.Ent().User.Get(context.Background(), auth.MustUID(c))
	if err != nil {
		response.HandleEntError(c, err)
		return
	}
	resource.NewUser(c, user).Response()
}
func ( Auth ) Profile ( c * gin . Context ) { user , err := global . Ent ( ) . User . Get ( context . Background ( ) , auth . MustUID ( c ) ) if err != nil { response . HandleEntError ( c , err ) return } resource . NewUser ( c , user ) . Response ( ) }
Profile get current authorized user info
Profile get current authorized user info