GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
348 B

  1. package resolver
  2. import "git.aiterp.net/rpdata/api/internal/session"
  3. // UserResolver resulves the user type
  4. type UserResolver struct{ U *session.User }
  5. // ID resolves User.id
  6. func (r *UserResolver) ID() string {
  7. return r.U.ID
  8. }
  9. // Permissions resolves User.permissions
  10. func (r *UserResolver) Permissions() []string {
  11. return r.U.Permissions
  12. }