backendTestMattj

package
v0.0.0-...-ffec5b0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLanguage

type DefaultLanguage struct {
	ID   uuid.UUID `json:"id"`
	Name string    `json:"name"`
	Code string    `json:"code"`
}

type PhoneNumber

type PhoneNumber struct {
	Extension    string `json:"ext"`
	Country_code string `json:"country_code"`
	PhoneNumber  string `json:"phone_number,omitempty"`
}

type Profile

type Profile struct {
	ID                   *uuid.UUID `json:"id,omitempty" db:"id"`
	FirstName            string     `json:"first_name,omitempty" db:"first_name"`
	LastName             string     `json:"last_name,omitempty" db:"last_name"`
	Email                string     `json:"email,omitempty" db:"email"`
	DefaultLanguage      *uuid.UUID `json:"default_language,omitempty" db:"default_language"`
	StreetAddPrimary     string     `json:"street_address_primary,omitempty" db:"street_address_primary"`
	StreetAddSecondary   string     `json:"street_address_secondary,omitempty" db:"street_address_secondary"`
	PhoneNumberPrimary   *uuid.UUID `json:"phone_number_primary,omitempty" db:"phone_number_primary"`
	PhoneNumberSecondary *uuid.UUID `json:"phone_number_secondary,omitempty" db:"phone_number_secondary"`
	City                 string     `json:"city,omitempty" db:"city"`
	StateProvidence      string     `json:"state_providence,omitempty" db:"state_providence"`
	ZipCode              string     `json:"zip_code,omitempty" db:"zip_code"`
	CreatedAt            *time.Time `json:"created_at,omitempty" db:"created_at"`
	UpdatedAt            *time.Time `json:"updated_at,omitempty" db:"updated_at"`
}

func (*Profile) CreateProfile

func (p *Profile) CreateProfile() error

func (*Profile) DeleteProfile

func (p *Profile) DeleteProfile() error

func (*Profile) GetProfile

func (p *Profile) GetProfile(ctx *gin.Context) (*Profile, error)

func (*Profile) UpdateProfile

func (p *Profile) UpdateProfile() error

func (*Profile) Validate

func (p *Profile) Validate() error

Jump to

Keyboard shortcuts

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