repository

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeRepo

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

func NewCodeRepo

func NewCodeRepo(db *gorm.DB) *CodeRepo

func (*CodeRepo) Create

func (r *CodeRepo) Create(code *models.Code) error

func (*CodeRepo) Delete

func (r *CodeRepo) Delete(code *models.Code) error

func (*CodeRepo) ExtendExpiration

func (r *CodeRepo) ExtendExpiration(code *models.Code) error

func (*CodeRepo) GetByCode

func (r *CodeRepo) GetByCode(value string) (*models.Code, error)

func (*CodeRepo) GetById added in v1.0.8

func (r *CodeRepo) GetById(Id int) (*models.Code, error)

func (*CodeRepo) GetLastIsActiveCode

func (r *CodeRepo) GetLastIsActiveCode(UserId int, Action string) (*models.Code, error)

func (*CodeRepo) Update

func (r *CodeRepo) Update(code *models.Code) error

func (*CodeRepo) UpdateWithAssociations added in v1.0.5

func (r *CodeRepo) UpdateWithAssociations(code *models.Code) error

type UserRepo

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

func NewUserRepo

func NewUserRepo(db *gorm.DB) *UserRepo

func (*UserRepo) Create

func (r *UserRepo) Create(user *models.User) error

func (*UserRepo) Delete

func (r *UserRepo) Delete(user *models.User) error

func (*UserRepo) GetByEmail added in v1.0.8

func (r *UserRepo) GetByEmail(Email string) (*models.User, error)

func (*UserRepo) GetByGoogleId added in v1.0.8

func (r *UserRepo) GetByGoogleId(GoogleId string) (*models.User, error)

func (*UserRepo) GetById added in v1.0.8

func (r *UserRepo) GetById(Id int) (*models.User, error)

func (*UserRepo) GetByUserId added in v1.0.8

func (r *UserRepo) GetByUserId(UserId int) (*models.User, error)

func (*UserRepo) GetByUuid added in v1.0.8

func (r *UserRepo) GetByUuid(Uuid uuid.UUID) (*models.User, error)

func (*UserRepo) Update

func (r *UserRepo) Update(user *models.User) error

Jump to

Keyboard shortcuts

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