models

package
v0.0.0-...-d8ec61f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID              string                       `json:"id"`
	Name            string                       `json:"name"`
	FirstName       string                       `json:"firstName"`
	LastName        string                       `json:"lastName"`
	Internal        bool                         `json:"internal"`
	Bot             bool                         `json:"bot"`
	Test            bool                         `json:"test"`
	ProfilePhotoUrl string                       `json:"profilePhotoUrl"`
	Timezone        string                       `json:"timezone"`
	CreatedAt       time.Time                    `json:"createdAt"`
	UpdatedAt       time.Time                    `json:"updatedAt"`
	PhoneNumbers    map[string]UserPhoneNumber   `json:"phoneNumbers"`
	JobRoles        map[string]bool              `json:"jobRoles"`
	Source          commonmodel.Source           `json:"source"`
	ExternalSystems []commonmodel.ExternalSystem `json:"externalSystems"`
	Roles           []string                     `json:"roles"`
}

func (*User) HasPhoneNumber

func (u *User) HasPhoneNumber(phoneNumberId, label string) bool

func (*User) String

func (u *User) String() string

type UserPhoneNumber

type UserPhoneNumber struct {
	Primary bool   `json:"primary"`
	Label   string `json:"label"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL