models

package
v0.0.0-...-2e80e89 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type LinkOperationType

type LinkOperationType string
const (
	LinkOperationTypeAnd LinkOperationType = "AND"
	LinkOperationTypeOr  LinkOperationType = "OR"
)

func (LinkOperationType) IsValid

func (e LinkOperationType) IsValid() bool

func (LinkOperationType) MarshalGQL

func (e LinkOperationType) MarshalGQL(w io.Writer)

func (LinkOperationType) String

func (e LinkOperationType) String() string

func (*LinkOperationType) UnmarshalGQL

func (e *LinkOperationType) UnmarshalGQL(v interface{}) error

type OperationType

type OperationType string
const (
	OperationTypeEquals           OperationType = "Equals"
	OperationTypeNotEquals        OperationType = "NotEquals"
	OperationTypeLessThan         OperationType = "LessThan"
	OperationTypeLessThanEqual    OperationType = "LessThanEqual"
	OperationTypeGreaterThan      OperationType = "GreaterThan"
	OperationTypeGreaterThanEqual OperationType = "GreaterThanEqual"
	OperationTypeIs               OperationType = "Is"
	OperationTypeIsNull           OperationType = "IsNull"
	OperationTypeIsNotNull        OperationType = "IsNotNull"
	OperationTypeIn               OperationType = "In"
	OperationTypeNotIn            OperationType = "NotIn"
	OperationTypeLike             OperationType = "Like"
	OperationTypeILike            OperationType = "ILike"
	OperationTypeNotLike          OperationType = "NotLike"
	OperationTypeBetween          OperationType = "Between"
	OperationTypeMatch            OperationType = "Match"
)

func (OperationType) IsValid

func (e OperationType) IsValid() bool

func (OperationType) MarshalGQL

func (e OperationType) MarshalGQL(w io.Writer)

func (OperationType) String

func (e OperationType) String() string

func (*OperationType) UnmarshalGQL

func (e *OperationType) UnmarshalGQL(v interface{}) error

type QueryFilter

type QueryFilter struct {
	Field         string             `json:"field"`
	LinkOperation *LinkOperationType `json:"linkOperation"`
	Op            OperationType      `json:"op"`
	Value         interface{}        `json:"value"`
	Values        []interface{}      `json:"values"`
}

type User

type User struct {
	ID          string         `json:"id"`
	Email       string         `json:"email"`
	AvatarURL   *string        `json:"avatarURL"`
	Name        *string        `json:"name"`
	FirstName   *string        `json:"firstName"`
	LastName    *string        `json:"lastName"`
	NickName    *string        `json:"nickName"`
	Description *string        `json:"description"`
	Location    *string        `json:"location"`
	APIkey      *string        `json:"APIkey"`
	Profiles    []*UserProfile `json:"profiles"`
	CreatedBy   *User          `json:"createdBy"`
	UpdatedBy   *User          `json:"updatedBy"`
	CreatedAt   *time.Time     `json:"createdAt"`
	UpdatedAt   *time.Time     `json:"updatedAt"`
}

type UserInput

type UserInput struct {
	Email          *string   `json:"email"`
	Password       *string   `json:"password"`
	AvatarURL      *string   `json:"avatarURL"`
	DisplayName    *string   `json:"displayName"`
	Name           *string   `json:"name"`
	FirstName      *string   `json:"firstName"`
	LastName       *string   `json:"lastName"`
	NickName       *string   `json:"nickName"`
	Description    *string   `json:"description"`
	Location       *string   `json:"location"`
	AddRoles       []*string `json:"addRoles"`
	RemRoles       []*string `json:"remRoles"`
	AddPermissions []*string `json:"addPermissions"`
	RemPermissions []*string `json:"remPermissions"`
}

type UserProfile

type UserProfile struct {
	ID             int        `json:"id"`
	Email          string     `json:"email"`
	ExternalUserID *string    `json:"externalUserId"`
	AvatarURL      *string    `json:"avatarURL"`
	Name           *string    `json:"name"`
	FirstName      *string    `json:"firstName"`
	LastName       *string    `json:"lastName"`
	NickName       *string    `json:"nickName"`
	Description    *string    `json:"description"`
	Location       *string    `json:"location"`
	CreatedAt      time.Time  `json:"createdAt"`
	UpdatedAt      *time.Time `json:"updatedAt"`
	CreatedBy      *User      `json:"createdBy"`
	UpdatedBy      *User      `json:"updatedBy"`
}

type Users

type Users struct {
	Count *int    `json:"count"`
	List  []*User `json:"list"`
}

Jump to

Keyboard shortcuts

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