usecases

package
v0.0.0-...-ef6f028 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectUsecase

type ProjectUsecase interface {
	Create(ctx context.Context, request dto.CreateProjectReq) (*domains.Project, error)
	GetByID(ctx context.Context, id int64) (*domains.Project, error)
	Fetch(ctx context.Context, req dto.SearchProjectsReq) ([]*domains.Project, int64, error)
	Update(ctx context.Context, id int64, request dto.UpdateProjectReq) error
	Delete(ctx context.Context, id int64) error
}

ProjectUsecase represent the project's usecase contract

func NewProjectUsecase

func NewProjectUsecase(projectRepo repositories.ProjectRepository) ProjectUsecase

NewProjectUsecase will create new an projectUsecase object representation of ProjectUsecase interface

Jump to

Keyboard shortcuts

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