Documentation ¶
Index ¶
- type Reader
- type Repository
- type Service
- func (s *Service) CreateUser(ctx context.Context, payload entity.Signup) error
- func (s *Service) DeleteUser(ctx context.Context, userID int64) error
- func (s *Service) SignInUser(ctx context.Context, payload entity.Login) (entity.LoginResponse, error)
- func (s *Service) UpdateUser(ctx context.Context, userID int64, payload entity.Signup) error
- type UseCase
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader interface { Get(ctx context.Context, id int64) (user *entity.User, err error) GetByEmail(ctx context.Context, email string) (user *entity.User, err error) }
Reader interface
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service user usecase
func NewService ¶
func NewService(repo Repository, cacheSvc cache.Service) *Service
NewService create new service
func (*Service) CreateUser ¶
CreateUser ...
func (*Service) DeleteUser ¶
DeleteUser ...
func (*Service) SignInUser ¶
func (s *Service) SignInUser(ctx context.Context, payload entity.Login) (entity.LoginResponse, error)
SignInUser ...
Click to show internal directories.
Click to hide internal directories.