user

package
v0.0.0-...-9305a47 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorUserNotFound    = errors.New("user not found")
	ErrorInvalidPassword = errors.New("invalid password")
)

Functions

This section is empty.

Types

type IUser

type IUser interface {
	Get(ctx context.Context, userID int64) (*entity.User, error)

	Password(ctx context.Context, req *dto.UpdatePasswordDTO, userID int64) error
	Profile(ctx context.Context, req *dto.UpdateProfileDTO, userID int64) (*entity.User, error)
}

type User

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

func New

func (*User) Get

func (s *User) Get(ctx context.Context, userID int64) (*entity.User, error)

func (*User) Password

func (s *User) Password(ctx context.Context, req *dto.UpdatePasswordDTO, userID int64) error

func (*User) Profile

func (s *User) Profile(ctx context.Context, req *dto.UpdateProfileDTO, userID int64) (*entity.User, error)

Jump to

Keyboard shortcuts

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