usecase

package
v0.0.0-...-543a005 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT, 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 Usecase

type Usecase interface {
	Login(ctx context.Context, request dtos.UserLoginRequest) (response dtos.UserLoginResponse, httpCode int, err error)
	Create(ctx context.Context, payload dtos.CreateUserRequest) (userID int64, httpCode int, err error)
	PartialUpdate(ctx context.Context, data dtos.UpdateUserRequest) error
	UpdateStatus(ctx context.Context, req dtos.UpdateUserStatusRequest) error
	Detail(ctx context.Context, id int64) (detail dtos.UserDetailResponse, httpCode int, err error)
}

func NewUseCase

func NewUseCase(repo repository.Repository, log *zerolog.Logger, cfg config.Config) Usecase

Jump to

Keyboard shortcuts

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