product

package
v0.0.0-...-33d0708 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Register(ctx context.Context, user *models.User) error
	PublishEmail(ctx context.Context, name, email string) error
	Login(ctx context.Context, eamil, password string) (*dto.LoginResDto, error)
	GetAll(ctx context.Context) ([]*models.User, error)
	Active(ctx context.Context, email, optCode string) error
	GetByEmail(ctx context.Context, email string) (*models.User, error)
}

func NewService

func NewService(cfg *config.Config, userRepo userReop.Repository, kakfaWriter *kafka.Writer, logger logger.Logger) Service

Jump to

Keyboard shortcuts

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