command

package
v0.0.0-...-6d513be Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserHandler

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

func NewUserHandler

func NewUserHandler(repo repository.UserRepository, logger *logrus.Logger, jwtConfig *pkgjwt.JWTConfig, emailClient *email.EmailClient, httpc config.HttpConfig) *UserHandler

func (*UserHandler) Create

func (h *UserHandler) Create(ctx context.Context, cmd *user.CreateUser) (*entity.User, error)

func (*UserHandler) Delete

func (h *UserHandler) Delete(ctx context.Context, cmd *user.DeleteUser) error

func (*UserHandler) Login

func (h *UserHandler) Login(ctx context.Context, email string, password string) (string, *entity.User, error)

func (*UserHandler) Register

func (h *UserHandler) Register(ctx context.Context, cmd *user.CreateUser) (*entity.User, error)

func (*UserHandler) SendCode

func (h *UserHandler) SendCode(ctx context.Context, email string) error

func (*UserHandler) Update

func (h *UserHandler) Update(ctx context.Context, cmd *user.UpdateUser) (*entity.User, error)

func (*UserHandler) Verify

func (h *UserHandler) Verify(ctx context.Context, email, code string) error

Jump to

Keyboard shortcuts

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