repository

package
v0.0.0-...-0ea871c Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUser

func NewUser(db *gorm.DB, uc cache.User) repository.User

Types

type UserImpl

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

func (*UserImpl) Create

func (u *UserImpl) Create(ctx context.Context, data *dto.CreateReq) error

func (*UserImpl) FindByFields

func (u *UserImpl) FindByFields(ctx context.Context, fields *entity.User) (*entity.User, error)

func (*UserImpl) SetNullRefreshToken

func (u *UserImpl) SetNullRefreshToken(ctx context.Context, refreshToken string) error

func (*UserImpl) UpdateByEmail

func (u *UserImpl) UpdateByEmail(ctx context.Context, data *entity.User) (*entity.User, error)

func (*UserImpl) UpdateEmail

func (u *UserImpl) UpdateEmail(ctx context.Context, email string, newEmail string) (*entity.User, error)

func (*UserImpl) Upsert

func (u *UserImpl) Upsert(ctx context.Context, data *dto.UpsertReq) (*entity.User, error)

Jump to

Keyboard shortcuts

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