account

package
v0.0.0-...-670d40f Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountExistByEmailAndUsername

func AccountExistByEmailAndUsername(conn *clover.DB, email string, userName string) (bool, error)

func AccountExistsById

func AccountExistsById(conn *clover.DB, id string) (bool, error)

func CreateAccount

func CreateAccount(conn *clover.DB, account Account) error

func UpdateAccount

func UpdateAccount(conn *clover.DB, account Account) error

Types

type Account

type Account struct {
	Id          string    `json:"_id" clover:"_id"`
	UserName    string    `json:"user_name" clover:"user_name"`
	FirstName   string    `json:"first_name" clover:"first_name"`
	LastName    string    `json:"last_name" clover:"last_name"`
	Email       string    `json:"email" clover:"email"`
	PhoneNumber string    `json:"phone_number" clover:"phone_number"`
	Coordinates []float64 `json:"coordinates" clover:"coordinates"`
}

func GetAccountById

func GetAccountById(conn *clover.DB, id string) (Account, error)

func GetAccountByUsername

func GetAccountByUsername(conn *clover.DB, username string) (Account, error)

func GetAccountsByIds

func GetAccountsByIds(conn *clover.DB, ids []string) ([]Account, error)

func GetAllAccountsWithCoords

func GetAllAccountsWithCoords(conn *clover.DB) ([]Account, error)

Jump to

Keyboard shortcuts

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