authaccounts

package
v0.0.0-...-05df700 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthAccountCreateRow

type AuthAccountCreateRow struct {
	Email    string `db:"email"`
	Password string `db:"password"`
	Fullname string `db:"full_name"`
	Position string `db:"position"`
}

type AuthAccountGetRow

type AuthAccountGetRow struct {
	Id       int    `db:"id"`
	Email    string `db:"email"`
	Password string `db:"password"`
	PublicId string `db:"public_id"`
	Fullname string `db:"full_name"`
	Position string `db:"position"`
}

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func New

func New(db *sqlx.DB) *Repository

func (*Repository) Create

func (r *Repository) Create(input *AuthAccountCreateRow) error

func (*Repository) GetByEmail

func (r *Repository) GetByEmail(email string) (*AuthAccountGetRow, error)

Jump to

Keyboard shortcuts

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