package resolver import "git.aiterp.net/rpdata/api/internal/session" // UserResolver resulves the user type type UserResolver struct{ U *session.User } // ID resolves User.id func (r *UserResolver) ID() string { return r.U.ID } // Permissions resolves User.permissions func (r *UserResolver) Permissions() []string { return r.U.Permissions }