domain

package
v0.0.0-...-416caf1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contact

type Contact struct {
	ID          int64
	FullName    string
	PhoneNumber string
	Email       string
	CreatedAt   time.Time
	UpdateAt    time.Time
}

func NewContact

func NewContact(id int64, fullName, phoneNumber, email string) (Contact, error)

func NewContactEdit

func NewContactEdit(id int64, fullName, phoneNumber, email string) (Contact, error)

func (*Contact) Validate

func (c *Contact) Validate() error

Validate validates the email and phone number formats

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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