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
Click to show internal directories.
Click to hide internal directories.