biz

package
v0.0.0-...-7fe4561 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContact

func CreateContact(ctx context.Context, contact *Contact) (err error)

func DeleteContacts

func DeleteContacts(ctx context.Context, contactIDs []uint64) (err error)

func FetchContactByID

func FetchContactByID(ctx context.Context, contactID uint64) (*model.Contact, error)

func ListContactsByNames

func ListContactsByNames(ctx context.Context, names ...string) (contacts []*model.Contact, err error)

func UpdateContact

func UpdateContact(ctx context.Context, contactID uint64, updates map[string]interface{}) (err error)

Types

type Contact

type Contact struct {
	Name            string
	Mobile          string
	MobileConfirmed int
	Email           string
	EmailConfirmed  int
	CreatedAt       time.Time
	UpdatedAt       time.Time
}

Jump to

Keyboard shortcuts

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