entities

package
v0.0.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseEntity

type BaseEntity struct {
	ID          uuid.UUID `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	DisplayName string    `json:"displayName"`
	UpdatedAt   time.Time `json:"updatedAt"`
	CreatedAt   time.Time `json:"createdAt"`
}

func (BaseEntity) GetCreatedAt

func (b BaseEntity) GetCreatedAt() time.Time

func (BaseEntity) GetDescription

func (b BaseEntity) GetDescription() string

func (BaseEntity) GetDisplayName

func (b BaseEntity) GetDisplayName() string

func (BaseEntity) GetID

func (b BaseEntity) GetID() uuid.UUID

func (BaseEntity) GetName

func (b BaseEntity) GetName() string

func (BaseEntity) GetUpdatedAt

func (b BaseEntity) GetUpdatedAt() time.Time

func (BaseEntity) JsonToString

func (b BaseEntity) JsonToString() (string, error)

func (BaseEntity) ToJson

func (b BaseEntity) ToJson() ([]byte, error)

type User

type User struct {
	BaseEntity
	Email                   string      `json:"email"`
	Image50                 string      `json:"image50"`
	AuthenticationMechanism interface{} `json:"authenticationMechanism"` // map to oneOf
}

Jump to

Keyboard shortcuts

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