user

package
v0.0.0-...-23da319 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepositoryPort

type UserRepositoryPort interface {
	Insert(ctx context.Context, user *entity.User) (*uuid.UUID, error)
	Update(ctx context.Context, user *entity.User) (*entity.User, error)
	GetByID(ctx context.Context, id uuid.UUID) (entity.User, error)
	GetByEmail(ctx context.Context, email string) (entity.User, error)
	DeleteOne(ctx context.Context, id uuid.UUID) error
	DeleteAll(ctx context.Context) error
}

type UserServicePort

type UserServicePort interface {
	Register(ctx context.Context, req *entity.User) (*uuid.UUID, error)
	Login(ctx context.Context, email, password, ip string) (*aggregate.Session, error)
	UpdatePassword(ctx context.Context, id uuid.UUID, password string) (entity.User, error)
}

Jump to

Keyboard shortcuts

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