accountrepo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersistRepository

type PersistRepository struct{}

func New

func New() *PersistRepository

func (*PersistRepository) Create

func (r *PersistRepository) Create(ctx context.Context, account *models.Account) error

func (*PersistRepository) GetByEmail

func (r *PersistRepository) GetByEmail(ctx context.Context, email string) (*models.Account, error)

func (*PersistRepository) GetById

func (r *PersistRepository) GetById(ctx context.Context, id int64) (*models.Account, error)

func (*PersistRepository) GetByMobile

func (r *PersistRepository) GetByMobile(ctx context.Context, mobile string) (*models.Account, error)

func (*PersistRepository) IsEmailExist

func (r *PersistRepository) IsEmailExist(ctx context.Context, email string) (bool, error)

func (*PersistRepository) IsMobileExist

func (r *PersistRepository) IsMobileExist(ctx context.Context, mobile string) (bool, error)

func (*PersistRepository) ModifyPassword

func (r *PersistRepository) ModifyPassword(ctx context.Context, account *models.Account) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳