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
16 lines
348 B
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
|
|
}
|